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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Customize pop up warning when insufficient data after slicer selection

 

I have a regular PowerBI report with some slicers.   The challenge is that when number of rows selected based on a slicer gets below a certain threshold (say less than 20 rows), I want to display warning message like "Insufficient data to display".   The reason is that the visual based on the 20 rows threshold does not provide a good guide/representation. 

 

Is there any link to a similar solution for this?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , You can create measure like

measure = if( countrows(Table)< 20, "Insufficient data to display",  blank())

 

color measures

measure font = if( countrows(Table)< 20, "#000000" ,  "#FFFFFF00") 

 

measure background= if( countrows(Table)< 20, "#FFFFFF" ,  "#FFFFFF00") 

 

You can have this measure in card and use color on font and background , that can show hide based on value

#FFFFFF00 - transparent color

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

This works fine for the display of the "Insufficient data to display" message.  But I will like to hide the entire page background when this message is displayed so that onlly the message shows while the rest of the visuals are blured.  Any suggestion ?

Anonymous
Not applicable

@amitchandak 

This seems workable. I  will try to implement before end of week and ket you know.

 

Thanks.

Thanks @Paulien_ 

Paulien_
Frequent Visitor

I would create a measure that counts the rows with either count or countrows, e.g. CountRowsInTable
Then I would add an "IF" statement around the measure, saying: IF (CountRowsInTable< 20, "Insufficient data to display", "") and add this to a card visual. 

amitchandak
Super User
Super User

@Anonymous , You can create measure like

measure = if( countrows(Table)< 20, "Insufficient data to display",  blank())

 

color measures

measure font = if( countrows(Table)< 20, "#000000" ,  "#FFFFFF00") 

 

measure background= if( countrows(Table)< 20, "#FFFFFF" ,  "#FFFFFF00") 

 

You can have this measure in card and use color on font and background , that can show hide based on value

#FFFFFF00 - transparent color

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.