This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi all.
I'm getting used to DAX expressionswith columns, but not with tables.
I want to create new table for waterfall chart.
Here is the part of big table I have (1) and my target table (2).
-->
Could you guys help me find the best way to do this?
Appreciate.
Solved! Go to Solution.
hi. is possible that exists better solutions but i present one
TableNew2 =
UNION (
SELECTCOLUMNS (
Table1,
"UNIT", Table1[UNIT],
"DATE", Table1[DATE],
"FACTOR", "A",
"WEIGHT", Table1[FACTOR A]
),
SELECTCOLUMNS (
Table1,
"UNIT", Table1[UNIT],
"DATE", Table1[DATE],
"FACTOR", "B",
"WEIGHT", Table1[FACTOR B]
),
SELECTCOLUMNS (
Table1,
"UNIT", Table1[UNIT],
"DATE", Table1[DATE],
"FACTOR", "A",
"WEIGHT", Table1[FACTOR C]
)
)Or
TableNew =
UNION (
SUMMARIZECOLUMNS ( Table1[UNIT], Table1[DATE], Table1[FACTOR A], "FACTOR", "A" ),
SUMMARIZECOLUMNS ( Table1[UNIT], Table1[DATE], Table1[FACTOR B], "FACTOR", "B" ),
SUMMARIZECOLUMNS ( Table1[UNIT], Table1[DATE], Table1[FACTOR C], "FACTOR", "C" )
)
It can easily be done via the Query Editor, using Unpivot as illustrated in this video.
Actually, my columns are calculated columns, so Edit Query doesn't work here.
Any ideas?
hi. is possible that exists better solutions but i present one
TableNew2 =
UNION (
SELECTCOLUMNS (
Table1,
"UNIT", Table1[UNIT],
"DATE", Table1[DATE],
"FACTOR", "A",
"WEIGHT", Table1[FACTOR A]
),
SELECTCOLUMNS (
Table1,
"UNIT", Table1[UNIT],
"DATE", Table1[DATE],
"FACTOR", "B",
"WEIGHT", Table1[FACTOR B]
),
SELECTCOLUMNS (
Table1,
"UNIT", Table1[UNIT],
"DATE", Table1[DATE],
"FACTOR", "A",
"WEIGHT", Table1[FACTOR C]
)
)Or
TableNew =
UNION (
SUMMARIZECOLUMNS ( Table1[UNIT], Table1[DATE], Table1[FACTOR A], "FACTOR", "A" ),
SUMMARIZECOLUMNS ( Table1[UNIT], Table1[DATE], Table1[FACTOR B], "FACTOR", "B" ),
SUMMARIZECOLUMNS ( Table1[UNIT], Table1[DATE], Table1[FACTOR C], "FACTOR", "C" )
)
Thanks, you're awesome.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 27 | |
| 25 | |
| 22 | |
| 20 | |
| 14 |
| User | Count |
|---|---|
| 50 | |
| 47 | |
| 23 | |
| 18 | |
| 18 |