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 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] )
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 |
---|---|
10 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
17 | |
14 | |
10 | |
9 | |
6 |