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
shreyas
New Member

Custom table in PBI

Hey All,

I'm trying to create a custom table from an existing table.

 

Existing

Area

Q1

Q2

Q3

A

1

4

7

B

2

5

8

C

3

6

9

 

Expected

Area

Quarter

Value

A

Q1

1

B

Q1

2

C

Q1

3

A

Q2

4

B

Q2

5

 

Used DATATABLE dax expression.

Table convert = DATATABLE("Area",STRING,"Quarter",STRING,"Value",INTEGER
,{
{"A","Q1",1},
{"B","Q1",2},
{"C","Q1",3},
{"A","Q2",4},
{"B","Q2",5},
{"C","Q2",6},
{"A","Q3",7},
{"B","Q3",8},
{"C","Q3",9}
}
)

Basically idea is to get each cell vallue and place it in new table accordingly. I tried LOOKUPVALUE to get the cell value dynamically inside DATATABLE. But it asks for value to be compared which i have to hard-code.

 

Is there a way to achieve this PBI. 

1 ACCEPTED SOLUTION

image.png

image.png

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

3 REPLIES 3
Phil_Seamark
Microsoft Employee
Microsoft Employee

HI @shreyas

 

Go into the Query Editor and select the Area Column and then use the "Unpivot other columns" feature.

 

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Thanks @Phil_Seamark. It worked.

image.png

image.png

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

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.