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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
garynorcrossmmc
Advocate IV
Advocate IV

Filter a Line Chart via DAX Measure to report ONLY for Max Date

Hi all,

 

I have a requirement from our userbase that they'd like to be able to switch between measures reported in a line chart.  The trouble I'm running into is that some of these measures can only be reported as of the max date - metrics such as Open Roles, % of Employees on a Succession Plan, etc.  

Using the 'Open Roles' measure as an example, when a user selects the option on the left for 'Open Roles', I'd like the Line Chart to ONLY report the value for the maximum selected date and exclude the other Month/Year values from the axis:

garynorcrossmmc_0-1717447050629.png


I've tried MAX/MAXX/etc but am coming up short.  Any ideas?

3 REPLIES 3
Anonymous
Not applicable

Hi @garynorcrossmmc ,

Any update on this? Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information and description to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

HI @garynorcrossmmc,

Perhaps you can create a table with these measure field names and use it as source slicer.
Then you can create a new measure formula with switch function to check the selected value and redirect to correspond measure results.

Regards,

Xiaoxin Sheng

lbendlin
Super User
Super User

That should work automatically in a proper data model. Return BLANK for all months you want to suppress.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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