cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
alihijazi
Helper I
Helper I

ignore all selection

Hello

I'm trying to create a measure that is the max year available i.e. 2016

I want this measurue to display 2016 no matter what the user selects as filter 

please advise

1 REPLY 1
Greg_Deckler
Super User
Super User

Use an ALL clause in your FILTER statement:

 

https://msdn.microsoft.com/en-us/library/ee634802.aspx

 

So, something like:

 

MAXX(ALL([Table]),[Column])

or

CALCULATE(MAX([Column]),ALL([Table]))

@ me in replies or I'll lose your thread!!!
Check out my External Tool for Power BI Desktop!
Microsoft Hates Greg's Quick Measures
Check out my latest book!

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!