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 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] )
User | Count |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
36 | |
14 | |
12 | |
7 | |
7 |