Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

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 value field I'm trying to create the percentage of the population of, is the "Plan Payment Amount".

 

The field I'm trying to base the percentage of is the "Episode Category" field.

 

I'm ultimately trying to create a visualization card where depending of the slicers (Episode Category) and (Episode Description) will change the Percentage Calculation of the "Play Payment Amount"...based on the two slicers/filters I've referred to above.

 

I believe creating a measure would be the way to go...but I'm struggling with this.  Can you assist?

 

 

Thank you!

AW

 

1 ACCEPTED SOLUTION
v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

Based on your description, I created data as follows.

Table:

a1.png

 

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:

a2.png

 

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.

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

Try

Measure = 
DIVIDE(
calculate(sum(Table1[Plan Payment Amount]));
calculate(sum(Table1[Plan Payment Amount]),all(Episode[Episode Category]),all(Episode[Episode Description]))
)

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
https://community.powerbi.com/t5/Community-Blog/Power-BI-Working-with-Non-Standard-Time-Periods/ba-p...
https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

Based on your description, I created data as follows.

Table:

a1.png

 

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:

a2.png

 

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.

az38
Community Champion
Community Champion

Hi @Anonymous 

not sure what is "percentage" in your task but try to create a measure like

Measure = 
DIVIDE(
calculate(sum(Table1[Plan Payment Amount]));
calculate(sum(Table1[Plan Payment Amount]);all(Table1))
)

do not hesitate to give a kudo to useful posts and mark solutions as solution


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.