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.
Hi All,
I am very new to Power BI and I want to make a simple dynamic column that is the difference between my two sources ( 26 - 11).
Any help would be greatly appreciated.
Solved! Go to Solution.
Hi @Tom_McFadyen ,
Create a measure like so:
Diff =
VAR Source26 =
CALCULATE ( SUM ( 'Table'[Value] ), 'Table'[SourceID] = 26 )
VAR Source11 =
CALCULATE ( SUM ( 'Table'[Value] ), 'Table'[SourceID] = 11 )
RETURN
Source26 - Source11
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Tom_McFadyen !
You can use following DAX to create a new column;
New Column = Table[26] - Table[11]
Regards,
Hasham
Hi Hasham,
Unfortunately these aren't individual columns. They are ID's assigned to a normalised row [SecId, SourceID, Value] And I want to calculate the difference between values where secId's are common and calc is SourceID 26 - source ID 11
Hi @Tom_McFadyen ,
Create a measure like so:
Diff =
VAR Source26 =
CALCULATE ( SUM ( 'Table'[Value] ), 'Table'[SourceID] = 26 )
VAR Source11 =
CALCULATE ( SUM ( 'Table'[Value] ), 'Table'[SourceID] = 11 )
RETURN
Source26 - Source11
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
110 | |
97 | |
77 | |
63 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |