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 Community,
I’ve created a disconnected table to use as a slicer for filtering total revenue displayed in a card visual. The slicer works correctly when users select specific items (e.g., Category 3, Category 4, Category 5, etc.).
However, I’ve noticed an issue with Power BI’s default behavior: when all options are selected, and the user clicks “Select all”, it actually deselects everything — but the card visual still shows total revenue instead of going blank.
In this case, I want the card visual (and report visuals) to show blank values when the slicer is in a fully deselected state (after “Select all” is clicked). I’ve tried several approaches using DAX and conditional logic, but none seem to detect the “fully deselected” state correctly.
Has anyone found an effective way to handle this behavior in disconnected slicers so that visuals return blank when nothing is selected?
Thanks in advance for any help or ideas!
Hi @AnkittM08 ,
Thank you @vivien57 and @Praful_Potphode for the response provided!
Has your issue been resolved? If the response provided by the community member addressed your query, could you please confirm? It helps us ensure that the solutions provided are effective and beneficial for everyone.
Thank you for your understanding!
Hello @AnkittM08 ,
You need to create a DAX measure that detects if nothing is selected in the slicer and then use this measure in the visual card.
Let's take the example of a disconnected table called "toto" and column "category".
SelectedCategoryCount =
IF(
ISFILTERED(Toto[Category]),
COUNTROWS(VALUES(Toto[Category])),
0
)
Then, you can create a conditional measure for the card :
RevenueFiltered =
IF(
[SelectedCategoryCount] = 0,
BLANK(),
[TotalRevenue] -- your existing measure
)
Please feel free to give me a kudo and accept my answer as the solution if it helped you.
have a nice day,
vivien
Hi Vivien,
I have already applied this approach, but it isn’t working as expected. It only works for one condition — when a selection is made, the card visual shows correctly. However, when I deselect (or select all), the card visual still appears blank for both selection and deselection cases.
Try this DAX code then:
IsNothingSelected =
IF(
ISFILTERED(Toto[Category]) && COUNTROWS(VALUES(Toto[Category])) = 0,
TRUE(),
FALSE()
)
or
RevenueFiltered =
IF(
NOT(ISFILTERED(Toto[Category])),
BLANK(),
[TotalRevenue]
)
I tried using the following measure in my matrix visual:
Is Nothing Selected = INT(ISFILTERED(ItemTypeTable[ItemType]))
I applied a visual-level filter where the value is set to “1”. It currently works in such a way that when all items are selected (meaning all tiles are highlighted), no data appears in the matrix — the same happens when nothing is selected in the slicer.
However, I want the opposite behavior:
1. When all items are selected, the matrix should show data.
2. When nothing is selected, the matrix should show blank.
One limitation of this measure is that it cannot be applied to any card visual. Could you please help modify the measure so it supports this logic and works in both matrix and card visuals if possible?
Try this :
RevenueFiltered =
VAR SelectedItems = VALUES(ItemTypeTable[ItemType])
VAR TotalItems = COUNTROWS(ALL(ItemTypeTable[ItemType]))
VAR SelectedCount = COUNTROWS(SelectedItems)
VAR IsNothingSelected = SelectedCount = 0
VAR IsAllSelected = SelectedCount = TotalItems
RETURN
IF(
IsNothingSelected,
BLANK(),
[TotalRevenue] -- existing measure
)
Use this measure in your card or matrix. Do not put a visual filter on Is Nothing Selected, as this logic is already built into the measure.
Please feel free to give a kudo or validate as an answer if it helped you.
have a nice day,
Vivien
Hi @AnkittM08 ,
you can create customer measure like below.
FOrecast Value = IF(
ISBLANK(SELECTEDVALUE(FactTable[Forecasted Isoweek]))
,BLANK() //output for select all condition
,SUM(FactTable[Forecasted Value]))when all values are selected then selected value returns BLANK,we can check for blanks and return the desired output we want.
another measure you can try is combination of FILTERS and distinct which is computaion wise expensive operation for this problem.
FOrecast Value 2 =
var filtered_Values=COUNTROWS(FILTERS(FactTable[Forecasted Isoweek])) //this will get selected column values in slicer
var distinct_values=CALCULATE(DISTINCTCOUNT(FactTable[Forecasted Isoweek]),ALL(FactTable)) // this will give total values in slicer
RETURN
IF(
filtered_Values=distinct_values // all values are selected
,BLANK()
,SUM(FactTable[Forecasted Value])
)Please give kudos or mark it as solution once confirmed.
Thanks and Regards,
Praful
Hi @Praful_Potphode
Thank you for your suggestion to help me achieve my requirement; however, I’ve already tried this approach, and it didn’t work as expected.
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.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |