Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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.
Solved! Go to Solution.
HI @shreyas
Go into the Query Editor and select the Area Column and then use the "Unpivot other columns" feature.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
144 | |
72 | |
63 | |
52 | |
49 |
User | Count |
---|---|
208 | |
91 | |
62 | |
59 | |
56 |