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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
arajan111
Frequent Visitor

Transpose and pivot data for calculated columns

The below is the original data:

UserResponse 1

 

Response 2

Response 3Response 4Response 5
ABCAdoptingPerformingAdoptingLeadingExperienced
DEFAdoptingLeadingPerformingAdoptingPerforming
GHIPerformingExperiencedLeadingPerformingAdopting

 

I have added some calculated columns to the above table:

 

UserResponse 1Response 2Response 3Response 4Response 5Critical Use 1Critical Use 2Critical USe 3Critical UseCritical Use CalcCreative 1Creative 2Creative_CalcCreative
ABCAdoptingPerformingAdoptingLeadingExperienced40304036.67Adopting608070Adopting
DEFAdoptingLeadingPerformingAdoptingPerforming40603043.33Exploring403035Performing
GHIPerformingExperiencedLeadingPerformingAdopting30806056.67Exploring308055

Adopting

 

 

 

These calculations are based on the below lookup tables:

Adopting40
Leading60
Performing30
Experienced80

 

Adopting36.67
Exploring43.37
Exploring56.67
Adopting55
Adopting70
Performing

35

 

I now need to get the table to pivot the data as follows:

 

ABCCritical Use 1

40

ABCCritical Use 240
ABCCritical USe 330
ABCCritical Use33.6
ABCCritical Use CalcAdopting
ABCCreative 140
ABCCreative 260
ABCCreative_Calc50
ABCCreativeAdopting

 

I cannot use the transform function in Query editor because the calculated columns wouldnt appear there. What would be an alternative way to get this displayed?

1 ACCEPTED SOLUTION
DataNinja777
Super User
Super User

Hi @arajan111 

 

In this case, it is better to use Power Query to merge data in order to bring numerical values in your table, and unpivot the wide table after merging the additional numerical columns.  Transforming your data to a long narrow table (the type of table which dax can efficienty process and consume), is Power Query's forte.  

 

DataNinja777_0-1714524229528.png

Best regards,

 

View solution in original post

1 REPLY 1
DataNinja777
Super User
Super User

Hi @arajan111 

 

In this case, it is better to use Power Query to merge data in order to bring numerical values in your table, and unpivot the wide table after merging the additional numerical columns.  Transforming your data to a long narrow table (the type of table which dax can efficienty process and consume), is Power Query's forte.  

 

DataNinja777_0-1714524229528.png

Best regards,

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.