Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Percentage Calculation

Hello,   I'm new to Power BI and struggling mightily to figure this out.   I'm trying to create a percentage calculation for a population.  I'm working with a large dataset where the numerical va...
  • v-alq-msft's avatar
    6 years ago

    Hi, Anonymous 

     

    Based on your description, I created data as follows.

    Table:

     

    You can create a measure as follows. Finally, you can use the ‘Episode Category’ and ‘Episode Description’ columns as slicers to change the measure.

    Plan Payment Amount =

    DIVIDE(

        SUM('Table'[Value]),

        CALCULATE(

            SUM('Table'[Value]),

            ALLSELECTED('Table')

    ))

     

    Result:

     

    If I misunderstand your thought, please show me your sample data and expected output. Do mask sensitive data before uploading. I am glad to solve the problem for you.

     

    Best Regards,

    Allan

     

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