Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Solved! Go to Solution.
Hi @ianyyz ,
Assume that you have two tables 'pivot' and 'summary' in Power BI, you can follow the steps below to get it:
1. Create a calculated column in the table 'pivot'
Column =
VAR _amount =
CALCULATE (
SUM ( 'summary'[Amount] ),
FILTER ( 'summary', 'summary'[sec id] = 'pivot'[sec id] )
)
RETURN
'pivot'[Grand Total] - _amount
2. Or create a measure as below and create a table using the field 'pivot'[sec id] and this new measure
Measure =
VAR _amount =
CALCULATE (
SUM ( 'summary'[Amount] ),
FILTER ( 'summary', 'summary'[sec id] = SELECTEDVALUE ( 'pivot'[sec id] ) )
)
RETURN
SUM ( 'pivot'[Grand Total] ) - _amount
Best Regards
Hi @ianyyz ,
Assume that you have two tables 'pivot' and 'summary' in Power BI, you can follow the steps below to get it:
1. Create a calculated column in the table 'pivot'
Column =
VAR _amount =
CALCULATE (
SUM ( 'summary'[Amount] ),
FILTER ( 'summary', 'summary'[sec id] = 'pivot'[sec id] )
)
RETURN
'pivot'[Grand Total] - _amount
2. Or create a measure as below and create a table using the field 'pivot'[sec id] and this new measure
Measure =
VAR _amount =
CALCULATE (
SUM ( 'summary'[Amount] ),
FILTER ( 'summary', 'summary'[sec id] = SELECTEDVALUE ( 'pivot'[sec id] ) )
)
RETURN
SUM ( 'pivot'[Grand Total] ) - _amount
Best Regards
anybody???
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
103 | |
100 | |
78 | |
69 | |
63 |
User | Count |
---|---|
141 | |
106 | |
101 | |
85 | |
72 |