Forum Discussion
Table total formula problem
- 4 years ago
Elie_HUCHET , You have use visual column to rebuild total
Bennes manquantes 2 = Sumx(values(Table (2)[Column]) , if([stock dispo2]-SUM('Table (2)'[Stock pour dev Co])>=0,0,[stock dispo2]-SUM('Table (2)'[Stock pour dev Co])) )
or refer this video
- Anonymous4 years ago
Hi Elie_HUCHET ,
IF function will return values based on true or false, so you won't get total as you want. amitchandak 's reply should be a workaround, you need to use keycolumn in your visual to calculate the sum based on [Bennes manquantes 2] measure instead of the measure code.
Measure with correct subtotal = SUMX(VALUES('TableName'[Keycolumn]),[Bennes manquantes 2])The calculation is based on your data model. If this reply still couldn'y help you solve your problem, please share a sample file with me and show me a screenshot with the result you want.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Elie_HUCHET , You have use visual column to rebuild total
Bennes manquantes 2 = Sumx(values(Table (2)[Column]) , if([stock dispo2]-SUM('Table (2)'[Stock pour dev Co])>=0,0,[stock dispo2]-SUM('Table (2)'[Stock pour dev Co])) )
or refer this video