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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Slicing data across multiple columns

I have lots of data that can be summarized into the following type of data (this is not my data but it a smaller version and sanitised).

goofy_0-1655591961124.png

From the data I want to have a stacked column chart showing a sum of all jumpers sold and all jumpers returned across a specific time period.

Along with the above data, I have created a date table using the calendarauto function.

 

My real data has multiple 'Jumper' manufacturers and significant number of weeks data.

 

I want to only have one chart that sums all the sold and returned jumpers across a specific time period, but to then be able to 'click' a slicer for 'ABC Jumpers' and the chart to only show the values of sold and returned jumpers for 'ABC Jumpers'.  And to be able to do that for any number of 'Jumper Manufacturers'

 

Any help with how to do this would be appreciated.

 

Thanks

 

 

 

1 ACCEPTED SOLUTION
Hariharan_R
Solution Sage
Solution Sage

Hi @Anonymous 

You need to unpivot your columns into rows to acheive the results easily. You can do this in Power Query layer or DAX. Please refer below. Once you unpivoted then you can easily build a visuals.

 

Power Query - https://kohera.be/power-bi/how-to-unpivot-twice/

DAX - https://community.powerbi.com/t5/Desktop/Convert-multiple-column-data-into-a-column-with-multiple-rows/m-p/674345

 

Thanks

Hari

Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


My Blog :: YouTube Channel :: My Linkedin


View solution in original post

3 REPLIES 3
Hariharan_R
Solution Sage
Solution Sage

Hi @Anonymous 

You need to unpivot your columns into rows to acheive the results easily. You can do this in Power Query layer or DAX. Please refer below. Once you unpivoted then you can easily build a visuals.

 

Power Query - https://kohera.be/power-bi/how-to-unpivot-twice/

DAX - https://community.powerbi.com/t5/Desktop/Convert-multiple-column-data-into-a-column-with-multiple-rows/m-p/674345

 

Thanks

Hari

Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


My Blog :: YouTube Channel :: My Linkedin


Anonymous
Not applicable

Superb @Hariharan_R  ! Just what was required.  Thank you very much for your help, much appreciated.

Anonymous
Not applicable

Superb @Anonymous R ! Thank you very much that is exactly what I needed to do!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.