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
Newbie_1
Frequent Visitor

Dynamic string visual based on slicer selection

Hi everyone,

I have a problem with a DAX measure that does not behave as I am expecting. I want to highlight the current month users are reporting for, but it seems that "LASTROWNONBLANK" does not work for that. It might be due to the fact that the column is of a string type, because if I use the number of the month (7 = July), it works fine. Does anyone know the rootcause of this problem or can suggest an alternative measure?

Thanks!

Working.pngNot working.png

2 REPLIES 2
VijayP
Super User
Super User

Try Sorting Text column (month name) by Month Number and hope this problem may be sorted




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


I already have that setting, unfortunately it doesn't generate the desired outcome but I solved it by using IF statements. Thanks!

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.