Forum Discussion
Anonymous
5 years agoNot applicable
Sumx with filter over another Table
Hi All I am exactly requiring what microsoft is showing in below example: https://docs.microsoft.com/en-us/dax/sumx-function-dax The only differnece is that I need the filter from table "Lia...
- 5 years ago
Anonymous , Try like
Turnover OTC (Number) Spread orders current year vs. last year (Number) = CALCUALTE(SUM('Lian CH$Sales Invoice Line'[Quantity]),FILTER('Lian CH$Item','Lian CH$Item'[Item Group Code] = "A-Liste-C"))
Anonymous
5 years agoNot applicable
Hi Anonymous ,
According to your description, I create some data:
Table:
Table2:
Here are the steps you can follow:
The column of the second parameter of Sumx must come from the table in the first parameter. You can also use the RELATED() function to pull the column of another table
1. Create calculated column.
Column =
SUMX(FILTER('Table','Table'[group]="A"),RELATED('Table (2)'[value]))
2. Result.
You can downloaded PBIX file from here.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.