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
oscarmqz
Advocate II
Advocate II

Show last month in chart if no month is selected in another chart.

Hi, I have two charts. One is monthly and the other shows daily bars. I edited the interactions in the monthly one, so when a month is selected, the daily charts is filtered to that month only, instead of highlight. So far so good.... the problem I've not been able to fix is that if no month is selected in 1st chart, I'd like to show latest month by default on the daily chart. Any idea how to achieve this? Thanks in advance!

 

 

1 REPLY 1
vega
Resolver III
Resolver III

Did you try using the ISFILTERED or ISCROSSEDFILTERED function? You can do something along the lines of:

 

Measure :=

IF(
ISFILTERED('Date Table'[Months]),
[Regular Measure],
[Measure that returns results for only the latest month]
)

If you are having difficulty coming up with the measure for the last month only, it should be something along the lines of:

 

[Measure that returns results for only the latest month] :=

CALCULATE(
[Regular Measure],
'Date Table'[Month] = MAX('Date Table'[Month])
)

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.