Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

DAX - Division based on multiple condition

Hi All,

 

Wanted to do a current percentage view based on condition - something like percentage over selected category.

IDTotal
A29
B47
C88
B34
C45
A70

 

Desired output is  - 

 

IDSelected Category% / Selected Category
AA only100%
BA and B45%
CB and C38%

 

  • Anonymous , based on what I got. Assume Total is column

     

    divide(sum(Table[Total]), calculate(sum(table[Total]), allselected() ) )

1 Reply

  • Anonymous , based on what I got. Assume Total is column

     

    divide(sum(Table[Total]), calculate(sum(table[Total]), allselected() ) )