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, i have two tables, 'Sales' and 'Header' with a many to many relationship by [Client]
I have this structure
Sales | Header | ||
Client | Client | Amount | |
C1 | C1 | 1 | |
C1 | C1 | 2 | |
C2 | C2 | 3 | |
C2 | C2 | 4 | |
C2 | 5 | ||
C3 | |||
C4 | 6 |
And I want to create a new column with dax in a 'Sales' table containing the sum of the amount of each [Client] from 'Header'.
Sales | Header | ||
Client | NewColumDAX | Client | Amount |
C1 | 3 | C1 | 1 |
C1 | 3 | C1 | 2 |
C2 | 12 | C2 | 3 |
C2 | 12 | C2 | 4 |
C2 | 5 | ||
C3 | 0 | ||
C4 | 6 |
How can i do?
Thanks very much for any help
Solved! Go to Solution.
Hi @Anonymous
You may link the two tables and use below dax to get the calculated column.
Column = CALCULATE(SUM(Header[Amount]))+0
Regards,
Hi @Anonymous
You may link the two tables and use below dax to get the calculated column.
Column = CALCULATE(SUM(Header[Amount]))+0
Regards,
Yes Thanks!!!
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 |
---|---|
112 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |