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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi there!
I am trying to exclude certain rows in total with negative values. but it seems that the total is still including the negative values.
Could anyone help?
Calculation as below:
Solved! Go to Solution.
Hi,
I am not sure how your semantic model looks like, but please try something like below whether it suits your requirement.
Order not Sales MTD =
VAR _t =
ADDCOLUMNS (
SUMMARIZE ( fact_table, business_unit[Business Unit], product[Product Cat] ),
"@metrics",
CALCULATE (
IF ( [MTD Order] - [MTD Sales] > 0, [MTD Order] - [MTD Sales], BLANK () ),
Pillar[BU2] <> "Ortho"
)
)
RETURN
SUMX ( _t, [@metrics] )
Hi,
I am not sure how your semantic model looks like, but please try something like below whether it suits your requirement.
Order not Sales MTD =
VAR _t =
ADDCOLUMNS (
SUMMARIZE ( fact_table, business_unit[Business Unit], product[Product Cat] ),
"@metrics",
CALCULATE (
IF ( [MTD Order] - [MTD Sales] > 0, [MTD Order] - [MTD Sales], BLANK () ),
Pillar[BU2] <> "Ortho"
)
)
RETURN
SUMX ( _t, [@metrics] )
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 |
|---|---|
| 21 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 20 | |
| 13 | |
| 11 |