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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Unpivot columns including those columns as it is

Hello,

 

Is it possible to keep the columns and unpivot them as well?

I have a hierarchy Year > Qtr > Month with Sales (in M), these are columns but attributes / Value column will be generated after unpivot with Sales(in M) column. 

The requirement is to show them in vertical and horizontal slicers  in the same report with different tabs e.g,

When I unpivot (Year / Qtr /month), the columns will become rows (attribute / Value / Sales ) and there will not be any Year /Qtr /Month Column.

but I want my data to be  something like this

 

YearQuarterMonthAttrubuteValueSales (in M)
2019Q1JanYear2019340
2019Q1JanQtrQ1340
2019Q1JanMonthJan340
2019Q1FebYear2019290
2019Q1FebQtrQ1290
2019Q1FebMonthFeb290
2019Q1MarYear2019400
2019Q1MarQtrQ1400
2019Q1MarMonthMar400
2019Q2AprilYear201980
2019Q2AprilQtrQ280
2019Q2AprilMonthApril80
2019Q2MayYear2019310
2019Q2MayQtrQ2310
2019Q2MayMonthMay310
2019Q2JuneYear2019440
2019Q2JuneQtrQ2440
2019Q2JuneMonthJune440
2019Q3JulyYear2019220
2019Q3JulyQtrQ3220
2019Q3JulyMonthJuly220
2019Q3AugYear2019100
2019Q3AugQtrQ3100
2019Q3AugMonthAug100
2019Q3SeptYear201990
2019Q3SeptQtrQ390
2019Q3SeptMonthSept90
2019Q4OctYear2019200
2019Q4OctQtrQ4200
2019Q4OctMonthOct200
2019Q4NovYear2019180
2019Q4NovQtrQ4180
2019Q4NovMonthNov180
2019Q4DecYear2019700
2019Q4DecQtrQ4700
2019Q4DecMonthDec700

 

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@Anonymous 

 

You may duplicate the three columns first and then select Unpivot Only Selected Columns.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Duplicate in the database? or on the report, because I tried duplicating on the report and it didn't help.

In the database we are not allowed to make changes.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.