Forum Discussion
Gofin
2 years agoRegular Visitor
Need help in calculations
Hi everyone, Based on Name filter selection ,How to calculate this ratio? Please help with dax measures or column formulas . For example : if Name 'A' ,'B' is selected in the slicer, then rati...
- 2 years ago
Hi Gofin
You can use 3 measures :sum _QTY = sum('Table'[QTY])sum_Count = sum('Table'[Count])Ratio = divide ([sum_Count],CALCULATE([sum _QTY],ALLSELECTED('Table'[Name])))You can download the pbix from this link
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Ritaf1983
Super User
2 years agoHi Gofin
You can use 3 measures :
sum _QTY = sum('Table'[QTY])
sum_Count = sum('Table'[Count])
Ratio = divide ([sum_Count],CALCULATE([sum _QTY],ALLSELECTED('Table'[Name])))
You can download the pbix from this link
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly