Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 215917

DAX Function Help

$
0
0

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

          

PlantComponentMaterialMonthExtractDateForecast
P1C1M12016015-Jan-1610
P1C1M220160110-Jan-164
P1C1M320160115-Jan-1615
P2C1M420160120-Jan-1611
P2C1M520160125-Jan-1612

 

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 

 

 


Viewing all articles
Browse latest Browse all 215917

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>