Forum Discussion
kasife
3 years agoHelper V
Distinct SUM
Hi Guys, I would like to get the distinct sum by project and by module. I have a sales table with several lines, and when I add the value of the project, the result is multiplied. How could I do it?...
- 3 years ago
Hi,
try this measure:
Total sales = SUMX(DISTINCT('Table'[Module]),MAX('Table'[Sales Value]))If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
Maz_0102
2 years agoHelper I
Hello
please can you advise how to add a filter to this formula please?
the formula is great but what if i wanted to do based on condition of another column e.eg Rag = "Red"
please can you advise
DOLEARY85
2 years agoResident Rockstar
You could try this:
Total sales = CALCULATE(SUMX(DISTINCT('Table'[Module]),FIRSTNONBLANK('Table'[Sales Value],0)),'Table'[RAG]="Red")
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍