Jump to content

How To get the Max([Date]) OVER filtered value by another column from our Data Table in a calculated column


Rahul Jain 5

Recommended Posts

How To get hte Max(Month([Date])) OVER filtered value (first or second)by another column(i.e. rank having values like first, second, third) from our Data Table in a calculated column

or

Countunique(Month([Date])) OVER filtered value (first or second)

power bi dax is like this

 

CountMonths = CALCULATE(DISTINCTCOUNT('table'[DATE]), 'table'[rank] IN { "first" })

Link to comment
Share on other sites

It is not so clear what you want to achieve. Are you using any filtering or do you just want to aggregate over a rank column  The calculated column will use you entire data set. Filtering will not change the result. But if you just want to aggregate/summarize for each rank then simply do: 

 

Max(Month([Date])) OVER [your.rank.column]

 

Is this what you were looking for

 

 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...