Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
pankajkk
New Member

Unable to get count of other columns correct when i unpivot some columns

I am working on a dataset where i have yes/no/na type questions along with other questions.

1. For Yes/No Question I am selecting unpivot by clicking on edit query and then it unpivots the selected columns ,from which i can very well make the graphs.

 

But in the same table others question counts gets disturbed,thats why i am not able to work on other question.

pankajkk_0-1685533528005.png

See,i Have only 20 rows with 300 different columns.

Now when i unpivot some of the columns it goes to around 400 rows which is correct.

pankajkk_1-1685533666344.png

And i can plot the graphs correctly.

But the problem is that original sheet contains only 20 rows and if i have to work on some other columns to create graphs/table then it is working on  total 400 rows which is incorrect.https://file.io/vyA9R1Y3s15h 

 

I have also attached sample data file

 

 

0 REPLIES 0

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.