March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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 "Lian CH$Item" and the summerize is for the Table Lian CH$Sales Invoice Line
However, I noticed that I only can use measures for the sumx but not Quantity as I would like:
But this is giving me an Error.
DAX:
any Idea what I am doing wrong?
I would like to have for each customer the total of ammount ordered.
Solved! Go to Solution.
@JonasDedual , 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"))
Hi @JonasDedual ,
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.
@JonasDedual , 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"))
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
91 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
73 | |
68 |