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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Arkhos94
Helper IV
Helper IV

Table - show warning message if too many row

I have a report that show if my commercial team performed their sales correctly

On the bottom half of the report page, there is a table showing the list of the sales that has not been performed correctly

 

The report is made to be exported in PDF through power automate (then emailed) so If there is too many line of the table I want it to show a message on the table like "Above 25 sales performed incorrectly, please go to the power BI report to check the list".

 

Any idea on how I can make it so, if the number of "incorrect sales" is above 25 (I already have a measure that count incorrect sales), the content of the table is replaced by a message ?

1 ACCEPTED SOLUTION
Adescrit
Impactful Individual
Impactful Individual

Hi @Arkhos94 ,

This might work but it's a tricky one.

1. Your measure to count the number of rows should be something like this:
         

CountRows = IF( COUNTROWS( 'Table' ) > 3, "Too Many Rows", "" )
 
2. Add a card visual and lay it over the top of the table. Ensure the background is 100% transparent. Add your CountRows measures.
3. Set up conditional formatting on the card as follows:
 
Adescrit_0-1701162415522.png

 

Adescrit_1-1701162442233.png

 

This won't necessarily replace the table but add a message overlayed on top of it.


Did I answer your question? Mark my post as a solution!
My LinkedIn

View solution in original post

1 REPLY 1
Adescrit
Impactful Individual
Impactful Individual

Hi @Arkhos94 ,

This might work but it's a tricky one.

1. Your measure to count the number of rows should be something like this:
         

CountRows = IF( COUNTROWS( 'Table' ) > 3, "Too Many Rows", "" )
 
2. Add a card visual and lay it over the top of the table. Ensure the background is 100% transparent. Add your CountRows measures.
3. Set up conditional formatting on the card as follows:
 
Adescrit_0-1701162415522.png

 

Adescrit_1-1701162442233.png

 

This won't necessarily replace the table but add a message overlayed on top of it.


Did I answer your question? Mark my post as a solution!
My LinkedIn

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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