Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi
I would like to show 0 values in a table if a slicer value is not selected/a message to prompt the user to select a slicer value.
I got this working but I couldn't scroll down the table because the other card visual with the message to 'Select a value in the slicer' was in the way so this didn't work properly.
For now, it displays everything in a table which is not ideal. I also want two of the same column values e.g. 'Product categories' to display in both the table and the slicer visual.
Thanks in advance,
Laura
Thanks,
Laura
Solved! Go to Solution.
Hi @Lauraeire_81,
Thank you for reaching out in Microsoft Community Forum.
Thank you @parry2k for the helpful response.
Please follow below steps to acheive the error;
1.Create a measure to check if a slicer value is selected:
IsCategorySelected = IF(ISFILTERED('YourTable'[Product Category]), 1, 0)
2.Create a card visual with a message like:
MessageText = IF([IsCategorySelected] = 0, "Please select a product category from the slicer.", BLANK())
3.Please Make sure the message card doesn’t overlap the table, or use bookmarks and layering to toggle visuals cleanly.
4.Modify your table measures like:
Sales = IF([IsCategorySelected] = 0, 0, [Actual Sales])
Please continue using Microsoft community forum.
If you found this post helpful, please consider marking it as "Accept as Solution" and give it a 'Kudos'. if it was helpful. help other members find it more easily.
Regards,
Pavan.
Hi @Lauraeire_81,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please "Accept as Solution" and give a 'Kudos' so other members can easily find it.
Thank you,
Pavan.
Hi @Lauraeire_81,
Thank you for reaching out in Microsoft Community Forum.
Thank you @parry2k for the helpful response.
Please follow below steps to acheive the error;
1.Create a measure to check if a slicer value is selected:
IsCategorySelected = IF(ISFILTERED('YourTable'[Product Category]), 1, 0)
2.Create a card visual with a message like:
MessageText = IF([IsCategorySelected] = 0, "Please select a product category from the slicer.", BLANK())
3.Please Make sure the message card doesn’t overlap the table, or use bookmarks and layering to toggle visuals cleanly.
4.Modify your table measures like:
Sales = IF([IsCategorySelected] = 0, 0, [Actual Sales])
Please continue using Microsoft community forum.
If you found this post helpful, please consider marking it as "Accept as Solution" and give it a 'Kudos'. if it was helpful. help other members find it more easily.
Regards,
Pavan.
@Lauraeire_81 check out these two videso on my YT channel:
Color transparency and conditional formatting is VERY powerful Part 1 - Power BI
Conditional Formatting and Transparency to develop user friendly reports Part II - Power BI
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.