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
Hi
I have a large survey data form 2014-2017 and I want to calculate how many responses were received each year (both count as well as %) by year and show the same in my BI dashbaord.
Year Response Count fo Y/N
2014 y Sum of all yes in 2014
2014 n Sum of all no in 2014
2015 y Sum of all yes in 2015
2015 n Sum of all no in 2015
Thanks for help.
Hi,
Unable to attach the pbix file. Pls see the photos attach and hope this is what you are looking for.
1. Created dummy survey table1
2. Created 3 measured as follows:
Count of Y/N = CALCULATE(COUNTA(Table1[Responsed (Y or N)]),FILTER(Table1,Table1[Year]=Table1[Year]))
Total responsed by year = CALCULATE(COUNTA(Table1[Responsed (Y or N)]),ALLEXCEPT(Table1,Table1[Responsed (Y or N)]))
% Responsed by Yr = DIVIDE([Count of Y/N],[Total responsed by year])
3. Created the result using Table Preview visualizations.
Cheer,
NH
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 | |
79 | |
78 | |
47 | |
39 |
User | Count |
---|---|
147 | |
115 | |
65 | |
64 | |
53 |