Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello,
From the picture above, you can see that I have used 4 slicers to calculate different things i.e.e hours, billing amount and total amount.
If I do not select anything, it shows this value (refer to the picture above). These values are accumulated and mean absolutely nothing, they only mislead the user. Please if someone can tell me what to do? Is there any way/option I can use where my table shows blank or nothing if nothing is selected from the slicer? Thanks.
P.S New to Power BI, not that good with DAX.
Solved! Go to Solution.
Hi @Anonymous ,
Please set a new measure:
Please new a measure:
Measure1 = CALCULATE ( IF ( ISFILTERED ( Table[Column] ), 1, 0 ), ALLSELECTED ( Table ) )
Add this measure to visual level filters, and set its value to 1.
Regards,
Daniel He
What you can do with the new feature of Field Parameters (check in Preview features):
In my case it works.
Measure1 =
CALCULATE ( IF ( ISFILTERED ( Table[Column] ), SELECTEDVALUE(Table1[Column1] ), "" ))
Hi @Anonymous ,
Please set a new measure:
Please new a measure:
Measure1 = CALCULATE ( IF ( ISFILTERED ( Table[Column] ), 1, 0 ), ALLSELECTED ( Table ) )
Add this measure to visual level filters, and set its value to 1.
Regards,
Daniel He
Hi there,
I have attempted to use this solution and succesfully created the measure. I have checked it using a card and it returns a value of zero when nothing is selected on my slicer and a value of 1 when something is selected. However, when I place it as a fliter for a visual, it does not let me set the vlaue to 1. It looks as shown in the picture and does nothing when I click the dropdown arrow to try to select "is" and then set the value to 1. Any suggestions?
Thanks
LilMurph
There must have been some fundamental change since this original post because I don't believe you can use a measure as a filter.
same issue here, hope anyone found a solution?
I have the same problem, did you manage to find a solution?
Thank you Daniel.😊
I had the same problem here
Hi,
This works for me but if I "Select All", I get a blank again. Why is that?
@Anonymous
You can try using the function hasonefilter with your slicers so if your slicers have a filter then do the calculations, otherwise return blank().
https://docs.microsoft.com/en-us/dax/hasonefilter-function-dax
something roughly like
TotalHours = if(hasonefilter(ClientDescription[name]),Sum(TotalHours),Blank())
Nopes, does not work. Basically, if I do not select anything from the slicer, my table should show blank but it does not. As you can see from the picture, it shows an accumulated value of something. I do not need that value if I have not selected anything!
My slicers are interlinked with each other (if that helps), for example if you choose an individual's name, the other slicers would show the parts that are only associated with the individual.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 44 | |
| 43 | |
| 38 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 67 | |
| 63 | |
| 30 | |
| 30 | |
| 23 |