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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
rmcgrath
Advocate II
Advocate II

Need help with multiple columns

I am really struggling with how to tackle this:  I have a data set that has a "total dozens" column.  And then there are several columns for different sizes of product, which add up to the "total dozens".  Ultimately, I would like to display total dozens on a line chart, but also include a Size slicer (so the user could select "Large" and the chart would display the total for "Large")

 

What is the best way to go about this?  I have tried unpivoting the columns, but just kind of got double amounts.

 

PRODUCTTOTAL DOZENSSMALLMEDIUMLARGEXLARGEJUMBO
Product A640032032
Product B3212101000
Product C12010055010
Product D11052618322
Product E98902222
Product F4515151500
Product G766350035
1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @rmcgrath ,

 

Looking at the sample what you need to do is to unpivot the data but delete the total dozen cplumns because that is the cause of your doubling of the quantities when you sim them.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

2 REPLIES 2
MFelix
Super User
Super User

Hi @rmcgrath ,

 

Looking at the sample what you need to do is to unpivot the data but delete the total dozen cplumns because that is the cause of your doubling of the quantities when you sim them.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



danextian
Super User
Super User

If you excluded total dozens from the total and add a slicer, shouldnt that give you  to correct total? Also, I don't think a line chart is the correct one for this.

danextian_0-1754433120349.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.