Forum Discussion
Wrong total in list
- 7 months ago
Dear all,
I think I found the solution with some help from Youtube and reading:
The DAX should beClaims = COUNTX('Tabelle2',('Tabelle2'[Anzahl]))Claims correct = sumx( SUMMARIZE('Tabelle1','Tabelle1'[Serials]), CALCULATE('Tabelle2'[Claims]))
I added the Claims correct field to the List and the total is now correct.Reading and listening helps 🙂
Dear all,
I think I found the solution with some help from Youtube and reading:
The DAX should be
I added the Claims correct field to the List and the total is now correct.
Hello Micky1968,
I would write it in a simpler way to make it more readable and using more common DAX functions
Claims = COUNTROWS ( Tabelle 2 ) -- I am supposing that every single row of Tabelle 2 is a claim
Claims by Serial = SUMX ( VALUES('Tabelle1'[Serials]), [Claims] )
If the above works, it is much easier to read
If you want details on VALUES vs SUMMARIZE and the reason to avoid the explicit CALCULATE call, come back in another post to keep things tidy
Best
If this helped, please consider giving kudos and mark as a solution
@me in replies or I'll lose your thread
Want to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page
Consider voting this Power BI idea
Francesco Bergamaschi
MBA, M.Eng, M.Econ, Professor of BI