March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I have a data table (POS CY) and slicer ([Slicer]) with 4 selection choices and select all option. I have below code if user clicks select all option in the slicer it excludes "Maintenance" sales from total in the data table. However i noticed after clicking select all if the user clicks on another slicer option formula doesnt work and totals include "Maintenance". Basically it bypasses formula. One way to avoid this is to force user to uncheck'select all" option. Is this possible to do? If not is there a way to modify the formula where it excludes "Maintenance" sales unless user specifically clicks and selects?
Below you will find the slicer selections
"Grocery"
'Drug"
"Depot"
"Maintenance
Special Slicer TY =
IF (
ISFILTERED ( 'POS CY'[Slicer]),
[POS TY],
CALCULATE (
[POS TY],
'POS CY'[Slicer] <> "Maintenance"
)
)
Solved! Go to Solution.
@tej147 I have a quetsion when i "select all" or uncheck some other slicer selection it works great. However if i dont "select all" and individually select it doesnt work. Is there a work around this? Thanks
Hi dokat,
You can disable "Select All" option of slicer in format pane.
In this formula you need to try
IF (
ISFILTERED ( 'POS CY'[Slicer]),
[POS TY],
CALCULATE (
[POS TY],
selectedvalue('POS CY'[Slicer]) <> "Maintenance"
)
)
Proud to be a Super User!
@VijayP Thank you for your response. However when i run the code i am receving below error message. Appreciate any help. Thanks
The True/False expression does not specify a column. Each True/False expressions used as a table filter expression must refer to exactly one column.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |