Forum Discussion

kolson256's avatar
kolson256
New Member
9 years ago
Solved

Dynamic Column Calculation Based on Multiple Slicers

I have a table of sales opportunities, and I want to create a column which displays the ratio of the opportunity's value compared to all active opportunities. I was able to accomplish this with the f...
  • v-ljerr-msft's avatar
    v-ljerr-msft
    9 years ago

    Hi kolson256,

     

    According to your description, using ALLSELECTED Function (DAX) should meet your needs. The formula below is for your reference.:smileyhappy:

    RATIO = SUM ( Table1[Amount] ) / CALCULATE ( SUM ( Table1[Amount] ), ALLSELECTED () )

     

    Regards