Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Fining a Percentage

Hi everyone, I am having touble getting this to work and I'm not quite sure how to word this question but here it is.  I am trying to get a percentage to show how many people used thier passes throu...
  • v-alq-msft's avatar
    6 years ago

    Hi, Anonymous 

     

    Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end. 

    Table1, Table2, Table3, Table4:

     

    You may create four measure as below.

    Visual Control 1 = 
    IF(
        SELECTEDVALUE(Table1[Pass 25])>=25*0.5,
        1,0
    )
    
    Visual Control 2 = 
    IF(
        SELECTEDVALUE(Table2[Pass 50])>=50*0.54,
        1,0
    )
    
    Visual Control 3 = 
    IF(
        SELECTEDVALUE(Table3[Pass 75])>=75*0.64,
        1,0
    )
    
    Visual Control 4 = 
    IF(
        SELECTEDVALUE(Table4[Pass 100])>=100*0.58,
        1,0
    )

     

    Finally you need to put the measure in the corresponding visual level filter to get the filtered result.

     

    Best Regards

    Allan

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.