Forum Discussion
Anonymous
4 years agoNot applicable
Using Column Total in Metrics
Hi I have below metrics data Here I need another measure as TotalOrders so that it shows 71 for all Complaint codes for Less Than 1 Hr and so on for rest of the buckets. Actually I wanted to ...
- 4 years ago
Hi Anonymous ,
Test the below :
create a new table2:
Table2 = SELECTCOLUMNS('Table',"VarCompCode",'Table'[VarCompCode],"Type",'Table'[Type]&" "&"%","value",'Table'[value]/CALCULATE(SUM('Table'[value]),FILTER(ALL('Table'),'Table'[Type]=EARLIER('Table'[Type]))))Then union the two table:
Table3 = UNION('Table',Table2)Fianl create the below visual:
Did I answer your question? Mark my post as a solution!
Best RegardsLucien
v-luwang-msft
4 years agoCommunity Support
Hi Anonymous ,
Test the below :
create a new table2:
Table2 = SELECTCOLUMNS('Table',"VarCompCode",'Table'[VarCompCode],"Type",'Table'[Type]&" "&"%","value",'Table'[value]/CALCULATE(SUM('Table'[value]),FILTER(ALL('Table'),'Table'[Type]=EARLIER('Table'[Type]))))
Then union the two table:
Table3 = UNION('Table',Table2)
Fianl create the below visual:
Did I answer your question? Mark my post as a solution!
Best Regards
Lucien