Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello All,
i have 2 columns - Status 1 and application
Status 1 column have texts - Green, Red, Yellow
Application column have 2 fields - Yes, No
i need to create measure of - Sum of total application - sum of Red and then sum of Yes /(devide) by total
Solved! Go to Solution.
Hi @bhavsar08,
According to my understanding of your request I build this sample data:
With this data table I wrote this measures:
Sum Application = SUM(f_data[Value])
Sum Red =
CALCULATE(
[Sum Application],
FILTER(
ALLSELECTED(f_data),
f_data[Status] = "RED"
)
)
Sum Yes =
CALCULATE(
[Sum Application],
FILTER(
ALLSELECTED(f_data),
f_data[Application] = "Yes"
)
)
Total Applications =
CALCULATE(
[Sum Application],
ALL(f_data)
)
% Yes = DIVIDE([Sum Yes], [Total Applications])
The final output was this:
Proud to be a Super User!
Hi @bhavsar08,
According to my understanding of your request I build this sample data:
With this data table I wrote this measures:
Sum Application = SUM(f_data[Value])
Sum Red =
CALCULATE(
[Sum Application],
FILTER(
ALLSELECTED(f_data),
f_data[Status] = "RED"
)
)
Sum Yes =
CALCULATE(
[Sum Application],
FILTER(
ALLSELECTED(f_data),
f_data[Application] = "Yes"
)
)
Total Applications =
CALCULATE(
[Sum Application],
ALL(f_data)
)
% Yes = DIVIDE([Sum Yes], [Total Applications])
The final output was this:
Proud to be a Super User!
Hi @bhavsar08,
Could you please provide some data and the expectec output?
Proud to be a Super User!
User | Count |
---|---|
84 | |
77 | |
75 | |
43 | |
36 |
User | Count |
---|---|
109 | |
56 | |
52 | |
45 | |
43 |