Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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 )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
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 )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
11 |
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
9 |