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

Show "Data not available" message for cards if monthly data not available

Hello All,

 

I am using cards visualization's, to show the current month data value.

And i have written Dax as

last month = IF(1*(TODAY()-'tablename'[Date])<30,"Last Month","Older Months").

then i have used this mesure in visual level filter and checked the last month.

I need to show a message as "Data not available"" if the current month data is not available.

And when ever the data is showed up in the cards then i would like to show the value as well as a message like  "Last updated on "Date"".

Is it possibel with card visualization if not then what is the best solution for this.

 

Please suggest me,

Mohan V

1 REPLY 1
malagari
Responsive Resident
Responsive Resident

You could make a new, conditional measure that first checks whether there is sufficient data for the month.

Measure =
IF( /* Determine if there is sufficient data */,
     /* Perform calculation */,
     "Data Not Available"
)

For instance, you could COUNTROWS() on your fact table filtered down to that month, and if it's greater than 0, perform the calculation.

Dan Malagari
Consultant at Headspring

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.