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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
dofrancis3
Helper III
Helper III

Unpivoted table withput powerpivot

Dear colleagues,

As you would see in the screenshot below, from table_1 il would like to create Unpivot DAX table without using Power Query.

Please could you support to resolve this issues.

 

dofrancis3_0-1741012660199.png

 

Thank you.

 

Fd.

1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@dofrancis3 , Try using SELECT COLUMNS and UNION

 

dax
Table_2 =
UNION(
SELECTCOLUMNS(
Table_1,
"Country", Table_1[Country],
"Year", Table_1[Year],
"Quarter", Table_1[Quarter],
"Output", "An approved activity",
"Indicators", Table_1[An approved activity],
"Value", BLANK()
),
SELECTCOLUMNS(
Table_1,
"Country", Table_1[Country],
"Year", Table_1[Year],
"Quarter", Table_1[Quarter],
"Output", "What is the intended use of these tools",
"Indicators", Table_1[What is the intended use of these tools],
"Value", BLANK()
),
SELECTCOLUMNS(
Table_1,
"Country", Table_1[Country],
"Year", Table_1[Year],
"Quarter", Table_1[Quarter],
"Output", "Capacity building",
"Indicators", Table_1[Capacity building],
"Value", BLANK()
),
SELECTCOLUMNS(
Table_1,
"Country", Table_1[Country],
"Year", Table_1[Year],
"Quarter", Table_1[Quarter],
"Output", "Verry good",
"Indicators", Table_1[Verry good],
"Value", BLANK()
),
SELECTCOLUMNS(
Table_1,
"Country", Table_1[Country],
"Year", Table_1[Year],
"Quarter", Table_1[Quarter],
"Output", "Have any surveys",
"Indicators", Table_1[Have any surveys],
"Value", BLANK()
)
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

1 REPLY 1
bhanu_gautam
Super User
Super User

@dofrancis3 , Try using SELECT COLUMNS and UNION

 

dax
Table_2 =
UNION(
SELECTCOLUMNS(
Table_1,
"Country", Table_1[Country],
"Year", Table_1[Year],
"Quarter", Table_1[Quarter],
"Output", "An approved activity",
"Indicators", Table_1[An approved activity],
"Value", BLANK()
),
SELECTCOLUMNS(
Table_1,
"Country", Table_1[Country],
"Year", Table_1[Year],
"Quarter", Table_1[Quarter],
"Output", "What is the intended use of these tools",
"Indicators", Table_1[What is the intended use of these tools],
"Value", BLANK()
),
SELECTCOLUMNS(
Table_1,
"Country", Table_1[Country],
"Year", Table_1[Year],
"Quarter", Table_1[Quarter],
"Output", "Capacity building",
"Indicators", Table_1[Capacity building],
"Value", BLANK()
),
SELECTCOLUMNS(
Table_1,
"Country", Table_1[Country],
"Year", Table_1[Year],
"Quarter", Table_1[Quarter],
"Output", "Verry good",
"Indicators", Table_1[Verry good],
"Value", BLANK()
),
SELECTCOLUMNS(
Table_1,
"Country", Table_1[Country],
"Year", Table_1[Year],
"Quarter", Table_1[Quarter],
"Output", "Have any surveys",
"Indicators", Table_1[Have any surveys],
"Value", BLANK()
)
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Kudoed Authors