The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello,
I'm really new to PowerBI and don't know any DAX yet 😞
I'm trying to create a column visual which shows values as a percentage of the sum of two values from another chart.
I've run a survey.
How do I do this?
Thank you very much for your help! 🙂
J
Hi @v-huizhn-msft and @davehus
I've attached some sample data. Thank you very much for your help!
Below is a onedrive link to some sample data.
https://1drv.ms/x/s!AjuHMtVQGOB-hz2pVR-p_GLHy5lY
J
Hi @JWorthy,
Please create two measures using the formula and add it in clusted column chart, you will get expected result as follows.
Percentage1 = DIVIDE(COUNT('Question 1'[Response]), CALCULATE(COUNTROWS('Question 1'),ALL('Question 1'))) count = COUNT('Question 2'[Response])
You can download the .pbix file for more details.
Best Regards,
Angelia
Hi @v-huizhn-msft,
Thanks for coming back to me.
I'm trying to do something slightly different. In the second chart, instead of calculating a % of the question 2 responses, I'd like to calculate the question 2 response as a % of 2 of the question 1 responses.
I'd like the second chart to show:
% of respondents who have chosen option A, B, C & D =
(Number of respondents who have chosen option A, B, C & D for question 2)
/
((Number of respondents who have selected option x for question 1)
+
(Number of respondents who have selected option y for question 1))
Does that make sense?
Thanks,
J
Hi - Have you got some sample data that you could provide?
Thanks
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
114 | |
80 | |
80 | |
48 | |
40 |
User | Count |
---|---|
150 | |
110 | |
64 | |
64 | |
58 |