Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Hi!
I am trying to go from this:
Payment 1 | Amount 1 | Payment 2 | Amount 2 |
Jan 1 | 10 | Feb 1 | 20 |
Jan 2 | 15 | Feb 2 | 25 |
to this:
Payment | Amount |
Jan 1 | 10 |
Feb 1 | 20 |
Jan 2 | 15 |
Feb 2 | 25 |
and I can't do this in the query editor because these are all custom columns added in the Tabular Data View.
Thank you!
Solved! Go to Solution.
Hi,
I assume you want to create a new table by using DAX formula.
Please check the below picture and the attached pbix file.
It is for creating a new table.
New Table =
VAR _tableone =
SELECTCOLUMNS (
Source,
"@Payment", Source[Payment 1],
"@Amount", Source[Amount 1]
)
VAR _tabletwo =
SELECTCOLUMNS (
Source,
"@Payment", Source[Payment 2],
"@Amount", Source[Amount 2]
)
RETURN
UNION ( _tableone, _tabletwo )
Hi,
I assume you want to create a new table by using DAX formula.
Please check the below picture and the attached pbix file.
It is for creating a new table.
New Table =
VAR _tableone =
SELECTCOLUMNS (
Source,
"@Payment", Source[Payment 1],
"@Amount", Source[Amount 1]
)
VAR _tabletwo =
SELECTCOLUMNS (
Source,
"@Payment", Source[Payment 2],
"@Amount", Source[Amount 2]
)
RETURN
UNION ( _tableone, _tabletwo )