Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi everyone,
I am really new using PowerBi and I am trying to find the way to create a measure using DAX code to receive the result of subtracting two total num values from same column using a filter from other column in the same table.
The example would be as follows:
- Filter column name: "Reference" with values '1' or '2'
- Total values in column name: "2024"
So imagine, the total value of 2024 using filter '1' is €5m and using '2' is €3m, so the result should be €2m.
Thank so much in advance!
Best regards,
Javier
Solved! Go to Solution.
| 1 | 5 |
| 2 | 3 |
| 1 | 5 |
| 2 | 3 |
It worked! Thank you so much. 🙂
Is there is a way so I can use a condittional formatting so the result shows an green icon for the positives and a red one for the negatives?
Something like this:
Thanks again!
You're welcome.
Please test out all scenarios.
Please create these two measures
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 18 | |
| 14 | |
| 14 |