Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Displaying MAX of Column when Filtering Date

Hi, 

 

Is there a way to display the Max value of a column on a dashboard when there exists a Year filter?

 

DATE_OPENEDTTC
4/8/2020 0:000
4/7/2020 0:000
4/7/2020 0:000
4/7/2020 0:000
4/4/2020 0:004
4/4/2020 0:005
4/6/2020 0:000
4/2/2020 0:000
4/2/2020 0:004
4/1/2020 0:008
4/3/2020 0:000
4/6/2020 0:000

 

For example, in the dataset above, if the year 2020 was selected on my Chicklet filter, I would want the Card output to say "8"

 

Please let me know if this question does not make sense

 

Thank you!
Sarah

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

@Anonymous 

smth like

= CALCULATE(MAX('Table'[TTC]), ALLEXCEPT(Table, Table[DATE_OPENED].[Year]))

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

3 REPLIES 3
az38
Community Champion
Community Champion

Hi @Anonymous 

in verycommon case just

= CALCULATE(MAX('Table'[TTC]))

will give desired result


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

@az38 , This gives the Max of the whole column, but I want it to display the Max of multiple years... so for example if the Max is 8 in 2020, I want all 2020 dates to display "8" but if the max is 13 in 2019, I would want it to display "13"

 

thank you!
Sarah

az38
Community Champion
Community Champion

@Anonymous 

smth like

= CALCULATE(MAX('Table'[TTC]), ALLEXCEPT(Table, Table[DATE_OPENED].[Year]))

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.