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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
dofrancis3
Resolver I
Resolver I

calculate the percentage of each Category

Dear Colleagues,

Please, I would like your support!

As you can see, I have two tables (Table_1 and Table_2) so, I'd like to calculate the percentage of each Category (table_1) according to each status (Table_2).

please see: https://docs.google.com/spreadsheets/d/1u-eWhVPJhTvuFKx9DO9eWt65w7wSnn_o4twDuHRyPrg/edit?usp=drive_l... 

 

Bellow are the formula:

 

P1= ZD DIVIDE P1 (12-23 months) + P1 (24-59 months)

P3= Uim DIVIDE P3 (12-23 months) + P3 (24-59 months)

MC1= ZD DIVIDE MC1 (12-23 months) + MC1 (24-59 months)

MC2= Uim DIVIDE MC2 (12-23 months) + MC2 (24-59 months)

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @dofrancis3 , thank you for your feedback.

 

Check the following measures:

P1_Percentage = 
DIVIDE(
    SUM(Table_2[ZD]),
    SUM(Table_1[P1 (12-23 months)]) + SUM(Table_1[P1 (24-59 months)]),
    0
)
P3_Percentage = 
DIVIDE(
    SUM(Table_2[Uim]),
    SUM(Table_1[P3 (12-23 months)]) + SUM(Table_1[P3 (24-59 months)]),
    0
)
MC1_Percentage = 
DIVIDE(
    SUM(Table_2[ZD]),
    SUM(Table_1[MC1 (12-23 months)]) + SUM(Table_1[MC1 (24-59 months)]),
    0
)
MC2_Percentage = 
DIVIDE(
    SUM(Table_2[Uim]),
    SUM(Table_1[MC2 (12-23 months)]) + SUM(Table_1[MC2 (24-59 months)]),
    0
)

Result:

vyajiewanmsft_0-1739259859791.png

Best regards,

Joyce

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

5 REPLIES 5
Anonymous
Not applicable

Hi @dofrancis3 ,

 

Since I’m unable to open the link file you shared, I will infer the data structure based on your description and provide the solution. If this is not feasible for you, please feel free to reply!

 

Table_1:

vyajiewanmsft_0-1739170234062.png

Table_2:

vyajiewanmsft_1-1739170274480.png

Then follow these steps to create the necessary measures:

Total_Category = 
SUM(Table_1[12-23 months]) + SUM(Table_1[24-59 months])
ZD_Percentage = 
VAR TotalValue = 
    CALCULATE(Table_1[Total_Category], ALLEXCEPT(Table_1, Table_1[Category]))
RETURN 
DIVIDE(
    SUM(Table_2[ZD]),
    TotalValue,
    0
)
Uim_Percentage = 
VAR TotalValue = 
    CALCULATE(Table_1[Total_Category], ALLEXCEPT(Table_1, Table_1[Category]))
RETURN
DIVIDE(
    SUM(Table_2[Uim]),
    TotalValue,
    0
)

Result for your reference:

vyajiewanmsft_2-1739170798484.png

Best regards,

Joyce

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

Dear @Anonymous  thank you for your replay but the structures of the table that i have attached isn't the same 

dofrancis3_1-1739172724932.png

 

This the structure of table_1

dofrancis3_0-1739174068184.png

 

Anonymous
Not applicable

Hi @dofrancis3 , thank you for your feedback.

 

Check the following measures:

P1_Percentage = 
DIVIDE(
    SUM(Table_2[ZD]),
    SUM(Table_1[P1 (12-23 months)]) + SUM(Table_1[P1 (24-59 months)]),
    0
)
P3_Percentage = 
DIVIDE(
    SUM(Table_2[Uim]),
    SUM(Table_1[P3 (12-23 months)]) + SUM(Table_1[P3 (24-59 months)]),
    0
)
MC1_Percentage = 
DIVIDE(
    SUM(Table_2[ZD]),
    SUM(Table_1[MC1 (12-23 months)]) + SUM(Table_1[MC1 (24-59 months)]),
    0
)
MC2_Percentage = 
DIVIDE(
    SUM(Table_2[Uim]),
    SUM(Table_1[MC2 (12-23 months)]) + SUM(Table_1[MC2 (24-59 months)]),
    0
)

Result:

vyajiewanmsft_0-1739259859791.png

Best regards,

Joyce

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

Dear @Anonymous Thank you

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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