Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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)
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:
Table_2:
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:
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 @v-yajiewan-msft thank you for your replay but the structures of the table that i have attached isn't the same
This the structure of table_1
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
21 | |
15 | |
15 | |
11 | |
7 |
User | Count |
---|---|
25 | |
24 | |
12 | |
12 | |
11 |