Hello,
My requirement is to calculate the MAX Extractdate(Column Name) for each month in dataset/Table after applying the user Filter in Power BI Desktop. So Once the dataset is filtered after applying Report parameter then DAX function should calculate the MAX date for each month in dataser which will be used in report.
I have tried ALLEXCEPT function But It calculate the MAX date before filter the data(By User parameter) in dataset which should be after filter the data.
For Example : Below is the Dataset
Plant | Component | Material | Month | ExtractDate | Forecast |
P1 | C1 | M1 | 201601 | 5-Jan-16 | 10 |
P1 | C1 | M2 | 201601 | 10-Jan-16 | 4 |
P1 | C1 | M3 | 201601 | 15-Jan-16 | 15 |
P2 | C1 | M4 | 201601 | 20-Jan-16 | 11 |
P2 | C1 | M5 | 201601 | 25-Jan-16 | 12 |
If User select Plant = P1 and Component = C1 then Max(ExtractDate) should be 15-Jan-16 But in my case It is showing 25-Jan-16.
How to calculate Max date dynamically based on user filter.
Thanks in Advance to help me
Regards,
Mahesh