Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Hi, I have this DAX SUMMARIZE statement but I don't understand what the final component of it is telling me (in bold) [ABS Diff].
Gross Variance = SUMX(SUMMARIZE('Group Mapping','Group Mapping'[Group2],"ABS Diff",ABS(SUM('Orders'[Ordered])-SUM('Deliveries'[Delivered]))),[ABS Diff])
Thanks.
Solved! Go to Solution.
Abs Diff inside SUMMARIZE is a virtual column. Outside that, it is a virtual column being aggregated. You cannot output a column as is in a measure - it should always return a scalar value ( min, max, sum, average, fist text string, last text string, earliest date, latest date, etc. ), not multiple rows.
Hi @1001
Gross Variance =
SUMX (
SUMMARIZE (
'Group Mapping',
'Group Mapping'[Group2],
"ABS Diff", ABS ( SUM ( 'Orders'[Ordered] ) - SUM ( 'Deliveries'[Delivered] ) )
),
[ABS Diff]
)
Hi @1001 ,
X functions are iterator functions. They iterate over a table or a virtual table (an expression that returns a table). What is wrapped in SUMMARIZE function is a virtual table with a column called ABS Diff for each distinct item in Group2. SUMX now then sums up ABS Diff. If there are two distinct Group2 items based on the current filter context wherein item1 is 5 and item2 is 7, SUMX returns 12.
I think the final ABS Diff is outputting my calculation as a column. Is that correct?
Abs Diff inside SUMMARIZE is a virtual column. Outside that, it is a virtual column being aggregated. You cannot output a column as is in a measure - it should always return a scalar value ( min, max, sum, average, fist text string, last text string, earliest date, latest date, etc. ), not multiple rows.
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
76 | |
74 | |
69 | |
47 | |
41 |
User | Count |
---|---|
63 | |
42 | |
30 | |
29 | |
28 |