Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I am sharing my Pbix file here;
I am trying to come up with percentage of data displayed on a separate column as illustrated below.
I am only calculating % using output of two columns (Percentage Qualified A & Percentage Qualified B).
The values are coming from Count.
So, the expected output are 90.5 % (for Client_ID 129532) and 86.9% (Client_ID 129533).
How do we go about doing this?
Thanks.
Solved! Go to Solution.
Try this (table and column names abbreviated for readability):
% Qualified =
DIVIDE (
CALCULATE (
COUNT ( vw[Client_ID] ),
vw[Are_you_vaccinated] IN { "Percentage Qualified A", "Percentage Qualified B" }
),
CALCULATE ( COUNT ( vw[Client_ID] ), REMOVEFILTERS ( vw[Are_you_vaccinated] ) )
)
They won't neatly go into another column in your existing visual since that matrix uses [Are_you_vaccinated] for the columns already. I'd suggest asking a separate question to resolve any layout issues.
@AlexisOlson Thanks. I will create a separate post. I think it might be better if I unpivot data of "Are_you_vacc..".
Try this (table and column names abbreviated for readability):
% Qualified =
DIVIDE (
CALCULATE (
COUNT ( vw[Client_ID] ),
vw[Are_you_vaccinated] IN { "Percentage Qualified A", "Percentage Qualified B" }
),
CALCULATE ( COUNT ( vw[Client_ID] ), REMOVEFILTERS ( vw[Are_you_vaccinated] ) )
)
They won't neatly go into another column in your existing visual since that matrix uses [Are_you_vaccinated] for the columns already. I'd suggest asking a separate question to resolve any layout issues.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
41 | |
21 | |
21 | |
14 | |
13 |
User | Count |
---|---|
44 | |
32 | |
30 | |
18 | |
17 |