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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Transpose Table in DAX

Hello guys i have an issue,

i have a calculated table like this where the values are measures in a another table called "Records"

ABC
234356

 

created using this DAX Expression

 

SELECTCOLUMNS(
    ADDCOLUMNS('Records',
     "A", [Measure A],
      "B", [Measure B],
      "C", [Measure C],
     ),
     "A",[A],
     "B", [B],
     "C", [C]
    )

 

 

I want to transpose it so it looks líke this.

MeasureValue
A23
B43
C56

 

 

Or is there a way i can achieve this structure without having to use the DAX Expression above.
Please help.
Thank you

@GuyInACube

1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @Anonymous 

UNION (
    ROW ( "Measure", "A", "Value", [Measure A] ),
    ROW ( "Measure", "B", "Value", [Measure B] ),
    ROW ( "Measure", "C", "Value", [Measure C] )
)

 

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

 

SU18_powerbi_badge

View solution in original post

3 REPLIES 3
AlB
Community Champion
Community Champion

Hi @Anonymous 

UNION (
    ROW ( "Measure", "A", "Value", [Measure A] ),
    ROW ( "Measure", "B", "Value", [Measure B] ),
    ROW ( "Measure", "C", "Value", [Measure C] )
)

 

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

 

SU18_powerbi_badge

Perfect!  This option worked great for me! It's simple and to-the-point!  I needed a table of Measure values and this option did the trick!  The table I needed looked this:

<code>

CurrentProgramProgress =
UNION (
    ROW ("Asset","REL","Current Progress",[RELActProjectProgress]),
    ROW ("Asset","Effort","Current Progress",[EffortActProjectProgress]),
    ROW ("Asset", "Station 515", "Current Progress", [Station515WeeklyProgress]),
    ROW ("Asset", "Station 201", "Current Progress", [Station201WeeklyProgress]),
    ROW ("Asset", "Station 505", "Current Progress", [Station505WeeklyProgress]),
    ROW ("Asset", "Comp Stn Mods", "Current Progress", [CompStnModsActOverallProgress]),
    ROW ("Asset", "Mt Laurel", "Current Progress", [MtLaurelActOverallProgress]),
    ROW ("Asset", "Lawnside", "Current Progress", [LawnsideActOtherProgress]),
    ROW ("Asset", "Camden", "Current Progress", [CamdenActOverallProgress]),
    ROW ("Asset", "Mainline A Regulator", "Current Progress", [MainlineAActOverallProgress]),
    ROW ("Asset", "Delaware River Regulator", "Current Progress", [DelawareActOverallProgress]),
    ROW ("Asset", "Beaver Dam", "Current Progress", [BeaverDamActOverallProgress])
)
</code>
And the resulting table looked like this:
ValerieR_0-1696441004889.png

It's perfect and just what I needed!  Thank you!

Anonymous
Not applicable

Oh My God, Thank you,

This worked like a dream.

I am so embarassed at how easy the solution was.

 

Again Thank you.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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