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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Create a pivot table(CALCULATETABLE) from a existing table in power

Hello Evryone,

 

I am newbie in PowerBI, I have table which looks like this :

SKUFIRST SECOND THIRD
SKU1102030
SKU251525

Now I want to create a CALCULATETABLE from the above existing table which will look like below:

SKUINTERVALSVALUES
SKU1FIRST10
SKU1SECOND20
SKU1THIRD30
SKU2FIRST5
SKU2SECOND15
SKU2THIRD25
6 REPLIES 6
Syk
Super User
Super User

In the Power Query Editor it uses M, not DAX.
When data is loaded it will go through whatever steps you apply to transform the data. For example if you had the data you provided and chose to use my solution from the screenshot, you won't have to do it again as it will be part of your 'Applied Steps'.

Syk_0-1654527684981.png

 

Anonymous
Not applicable

Hi Sky,

 

Thanks , got it how it works but it is modifying the existing table, I want a new table along with the existing one.

You can duplicate the table before you make any changes then apply the changes to the new table.

Anonymous
Not applicable

ok was doing that but creating a duplicate  table will work in a dynamic way ?

Anonymous
Not applicable

Hi Sky,

 

Thanks for your reply, I have many columns in the my table , just for simplicity I have given four columns and also I want this to happend dynamically, once I load the data this table should be created. Is this can be done using DAX?

 

Syk
Super User
Super User

You can do this in the Power Query Editor quite easily.
Under the 'Transform' tab with your SKU column selected,

Find 'Unpivot Columns' > 'Unpivot Other Columns'

Syk_0-1654525175850.png

And you should get your result!

Syk_1-1654525199210.png

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors