Forum Discussion
Wrong column totals (table)
- 7 years ago
Can you try this for MIN:
Min = SUMX(VALUES(Artikel[ArtikelId]), CALCULATE(SUM(ArtikelM[Aantal]) * MIN(ArtikelM[MinEenheid])))
themistoklis Same as with the SUMX approach for the "Min" measure: the same result :mansad:
Can you try this for MIN:
Min = SUMX(VALUES(Artikel[ArtikelId]), CALCULATE(SUM(ArtikelM[Aantal]) * MIN(ArtikelM[MinEenheid])))
- ikkew7 years ago
Advocate I
This... seems to work!
Could you elaborate on why your measure
Min = SUMX(VALUES(Artikel[ArtikelId]), CALCULATE(SUM(ArtikelM[Aantal]) * MIN(ArtikelM[MinEenheid])))
works, compared to
Min = SUMX(ArtikelM, ArtikelM[Aantal]) * MIN(ArtikelM[MinEenheid])
I can't thank you enough though!
Same for the others who tried to help me and pointed out the source of the issue!- themistoklis7 years ago
Community Champion
Generally working on Column Totals can become very tricky sometimes on PowerBI.
Values function returns the MIN of the each value in the field specified in the function. In this case 'Artikel[ArtikelID]'.
Without it 'total' takes the min across all ArtikelIDs
- HotChilli7 years ago
Community Champion
Hello again,
I see that the issue is sorted now which is great. Can you tell me what happened when you put my measure in to your pbix because i have just re-tested (fresh copy of your pbix, added MinChilli measure) and it all worked great?