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
Please could someone help me understand what I am doing wrong?
I am using variables to calculate the sum of the same column but using different selections based on a different column via slicers. I then want to find the difference between those 2 totals. See below:
The issue is the difference comes back as blank when 2 different options are selected from the slicer.
Currently here is my DAX:
Also if the same selection is selected across both filters, the difference will return 0:
Thank you!
Solved! Go to Solution.
Hi @Mattm1989
Unfortunately the slicers count as an AND filter on the card.
Meaning it tries to filter your Master table to only rows that fufill BOTH criteria.
You can either:
Use one slicer and have the two measures return only one of the items in the list. If the user can only ever choose one using Min on one and max on the other would work.
If you are happy with this answer please mark as a solution for others to find !
Kudos are always appreciated! Check out our free Power BI video courses.
Makes complete sense now! I've gone for a completely separate table on second calc and getting the result I require! thank you!
Hi @Mattm1989
Unfortunately the slicers count as an AND filter on the card.
Meaning it tries to filter your Master table to only rows that fufill BOTH criteria.
You can either:
Use one slicer and have the two measures return only one of the items in the list. If the user can only ever choose one using Min on one and max on the other would work.
If you are happy with this answer please mark as a solution for others to find !
Kudos are always appreciated! Check out our free Power BI video courses.
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 |
---|---|
133 | |
91 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
73 | |
68 |