Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Have the table above and i would like to know how i can add up the sum of the "YES" and create a pie chart without the need of doing them separately.
for example
Pineaple = 3 yes
mango = 4 yes
orange = 2 yes
guava = 5 yes
peach = 6 yes
and draw a pie chart from that
Solved! Go to Solution.
Hi @wonderful
From your screenshot, the sum of the "YES" for each column should be
To get this table, you need go to "Home"->"Edit Queries", then "Transform"->"Unpivot columns"->"Only selected ones"
Then "close &&apply", create a measure
Measure = CALCULATE(COUNT(Sheet1[Value]),FILTER(ALLEXCEPT(Sheet1,Sheet1[Attribute]),[Value]="Y"))
Best Regards
Maggie
Hi @wonderful
From your screenshot, the sum of the "YES" for each column should be
To get this table, you need go to "Home"->"Edit Queries", then "Transform"->"Unpivot columns"->"Only selected ones"
Then "close &&apply", create a measure
Measure = CALCULATE(COUNT(Sheet1[Value]),FILTER(ALLEXCEPT(Sheet1,Sheet1[Attribute]),[Value]="Y"))
Best Regards
Maggie
Hie @v-juanli-msft
I tried it and it is working perfectly, You are a life saver 🙂 Thank you for your help, I appreciate big timre.
Kindly Regards,
Wonderful
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.