The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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.
User | Count |
---|---|
81 | |
78 | |
37 | |
34 | |
31 |
User | Count |
---|---|
93 | |
81 | |
60 | |
49 | |
49 |