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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. 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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.