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
I am having trouble with the denominator in a division calculation. The denominator is being changed when items in a slicer are selected. I have used REMOVE FILTERS and ALL functions in the measure calculating the denominator, however the denominator value still changes when individual items in the slicer are selected. The only exception is when the "Blank" item in the slicer is selected combined with another slicer option (see below). How do I stop the slicer from changing this measure. ("Edit Interactions" option is not appropriate).
I am calculating the number of Total Tasks with Errors and slicing by the "Error Reason" . "Blank" in the "Error Reason" column represents Tasks that have no errors. "Tasks with Errors " is an number column & "Error Reason" is a text column.
Your help is appreciated.
Measure used:
Reason % =
Var Numerator = CALCULATE(SUM('Worksheet'[TasksWithErrors]))
Var Denominator = CALCULATE(SUM('Worksheet'[TasksWithErrors])), REMOVEFILTERS('Worksheet'[ErrorReason]))
Visuals when Slicer selected
What happens when the "Blanks" are selected in the slicer
Solved! Go to Solution.
Hi,
ALL should work here without problems since you are tring to calculate the total without filters. Here is a working DAX:
Var Denominator = CALCULATE(SUM('Worksheet'[TasksWithErrors])), ALL('Worksheet')
Proud to be a Super User!
Thanks for the help ValtteriN.
It appears that the "Blanks" were not the issue after all. The ALL function worked, however I have a time slicer on the page. I used ALLEXCEPT the Time Slicer in the Denominator Measure and the issue reappeared. I now believe that the Total Tasks is being impacted by the Time slicer which is in-turn modified by the Error Reason, and thus producing incorrect result. I will build a separate Calendar Table and see if this will work.
Hi,
ALL should work here without problems since you are tring to calculate the total without filters. Here is a working DAX:
Var Denominator = CALCULATE(SUM('Worksheet'[TasksWithErrors])), ALL('Worksheet')
Proud to be a Super User!
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 |
---|---|
23 | |
16 | |
15 | |
7 | |
6 |
User | Count |
---|---|
33 | |
29 | |
16 | |
13 | |
12 |