Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
70 | |
55 | |
38 | |
31 |
User | Count |
---|---|
78 | |
64 | |
64 | |
49 | |
45 |