Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I've created a slicer panel that contains several slicers. Because this slicer panel can be expanded or minimized, when minimized I want to let users know if one or more filter has been applied. I've been able to get this to work to a degree using ISFILTERED:
Filter Trigger Text =
IF(
ISFILTERED(table_1[users]) || ISFILTERED(table_2[region]),
"Filters have been applied", ""
)
The first slicer filters table_1[users]. A page-level filter also uses this column to remove some data from the page. This results in ISFILTERED returning true regardless of whether or not the slicer for table_1[users] has been applied.
Is there a way to ignore a page level filter within my DAX above but still return true if the slicer has been filtered? One potential solution is to duplicate the column [users] in table_1 and use one column for the page level filter and the second column for the slicer, but it would be much better if I could use DAX to do this.
Thanks in advance for any suggestions.
Solved! Go to Solution.
Hi @Shackleton ,
According to your description, here's my workaroud.
Smple:
In the page-level filter, I unchecked the value "FFF", so there're five values in the users slicer.
Create a measure.
Measure =
IF (
COUNTROWS ( ALLSELECTED ( table_1[users] ) ) < 5,
"Filters have been applied"
)
Get the result:
In the formula, if you don't want to count the number "5" manually, you can first don't select value in slicer then use a measure COUNT([users]) to get the number.
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Shackleton ,
According to your description, here's my workaroud.
Smple:
In the page-level filter, I unchecked the value "FFF", so there're five values in the users slicer.
Create a measure.
Measure =
IF (
COUNTROWS ( ALLSELECTED ( table_1[users] ) ) < 5,
"Filters have been applied"
)
Get the result:
In the formula, if you don't want to count the number "5" manually, you can first don't select value in slicer then use a measure COUNT([users]) to get the number.
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This helps, thanks. Within your explanation, we know if the filter is or not applied excluding page level filter. But if I don't want to write down "Filter have been applied" and want to write down which context filter i made? Is that possible? Cz i tried your way and it does not work =(
Thanks very much for this. I think this is a good workaround. Depending on some of the data sets it will be easier to just duplicate some columns as mentiond in my question and suggested by @parry2k below, but having this workaround is a nice option as well. Thanks to you both!
@Shackleton I think creating a duplicate column will make life easier otherwise you have to do some DAX trickery to get this done.
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.
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.
Thanks, but DAX trickery is what I'm after. We have dozens of dashboards that we will ultimately update with this new collapsable slicer window, and that's a lot of extra columns we'd need to add as a workaround.
User | Count |
---|---|
90 | |
74 | |
67 | |
63 | |
55 |
User | Count |
---|---|
101 | |
92 | |
74 | |
60 | |
59 |