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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello
I have the data:
Name; Index;
A 1
B 2
C 3
etc
I also have created an empty table and added calculated columns so that the following table is created:
1; 2; 3;
Calc1; Calc2; Calc3
etc
How can I create the table:
Name; Index; Calc;
A 1 Calc1
B 2 Calc2
C 3 Calc3
Thanks! By the way, if you have any better strategy to put calculations/measures in rows, please let me know! So that, I get the table above without creating two separate tables and trying to join them.
Solved! Go to Solution.
Hi @Anonymous ,
1. Create a calculated table.
Table 3 =
VAR X=
UNION(
SELECTCOLUMNS( 'Table (2)',"C1", MAX('Table (2)'[Column1]), "C2", MIN('Table (2)'[Column1]) ),
SELECTCOLUMNS( 'Table (2)', "C1", MAX('Table (2)'[Column2]), "C2", MIN('Table (2)'[Column2]) ),
SELECTCOLUMNS( 'Table (2)', "C1", MAX('Table (2)'[Column3]), "C3", MIN('Table (2)'[Column3]) )
)
RETURN
DISTINCT(
X
)
2. Create a calculated column.
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
1. Create a calculated table.
Table 3 =
VAR X=
UNION(
SELECTCOLUMNS( 'Table (2)',"C1", MAX('Table (2)'[Column1]), "C2", MIN('Table (2)'[Column1]) ),
SELECTCOLUMNS( 'Table (2)', "C1", MAX('Table (2)'[Column2]), "C2", MIN('Table (2)'[Column2]) ),
SELECTCOLUMNS( 'Table (2)', "C1", MAX('Table (2)'[Column3]), "C3", MIN('Table (2)'[Column3]) )
)
RETURN
DISTINCT(
X
)
2. Create a calculated column.
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You should unpivot or transpose your second table, and then you can merge the two on Index to create your desired output.
If this works for you, please mark it as solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Unfortunately this does not work. It is not possible to transpose the table because the added calculated columns do not appear in the Table under Edit Queries.
Any other solution?
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 103 | |
| 81 | |
| 65 | |
| 50 | |
| 45 |