Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
71 | |
69 | |
38 | |
26 | |
26 |
User | Count |
---|---|
97 | |
96 | |
59 | |
44 | |
40 |