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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Anonymous
Not applicable

Right visualisation to show an alert / notification

We have a Power BI Dashboard with a date-time slicer. The requirement from our users is to show an alert / notification / message if the data available for the selected data-range isn't sufficient. If there is enough data, the charts/calculations will be done.

 

What is the best Power BI visual to do the former? That is, how do we show a message above the slicer stating (e.g.) "Insufficient data, extend your date range"? Any suggestions?

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can try to determine the number of rows to return the result.

For example, if there are less than 3 pieces of data, it will display: "Insufficient data, extend your date range", and if it is greater than or equal to three pieces of data, the result will be calculated.

Sample data:

vstephenmsft_0-1656914721670.png

Measure:

Measure = IF(COUNTROWS('Table')>=3,CALCULATE(SUM('Table'[Value]),ALLSELECTED('Table')),"Insufficient data, extend your date range")

vstephenmsft_3-1656914822183.png

vstephenmsft_2-1656914814288.png

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-stephen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can try to determine the number of rows to return the result.

For example, if there are less than 3 pieces of data, it will display: "Insufficient data, extend your date range", and if it is greater than or equal to three pieces of data, the result will be calculated.

Sample data:

vstephenmsft_0-1656914721670.png

Measure:

Measure = IF(COUNTROWS('Table')>=3,CALCULATE(SUM('Table'[Value]),ALLSELECTED('Table')),"Insufficient data, extend your date range")

vstephenmsft_3-1656914822183.png

vstephenmsft_2-1656914814288.png

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors