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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
FlyHigh
Regular Visitor

Row to cols (row2col)

Helllo,

 

May somone can help me.

I havee one Tabele "Umlage" this will have n rows (for each month one row) in this screenshot n=2

 

I need the generated Tabel "Buchungen" starting with a UID (should be an intager)

and 10 rows each Periode.

For better understanding i have added a screenshot.

 

My Question : How can i calculate the tabele "Buchungen" in PowerBI Desktop by given Tabel Umlage with multible rows (in this example rows =2)Rows2Cols.PNG

 

 

 

 

 Best regards Peter

4 REPLIES 4
dkay84_PowerBI
Microsoft Employee
Microsoft Employee

You can unpivot your first table (right click the Periode column and select "Unpivot other Columns" in the Query Editor) then add an index column for your UID.

Hello dkay84,

 

Sorry this isn't possible because this aren’t tables from a query.

This tables are generated so they aren’t in the query editor. (or how is this posible ?)

 

KTC-Umlage_Euro = DISTINCT('KTC-Periode'[Periode])
1TC-SI = ((RELATED('KTC-Umlage_Faktor'[1TC-SI]))*[UmlagePeriode])
1TC-DEV = ((RELATED('KTC-Umlage_Faktor'[1TC-DEV]))*[UmlagePeriode])

and so on …

 

Problem still exist ...

best regards

FlyHigh

 

Hi @FlyHigh,

 

DAX doesn't provide the Pivot or Unpivot features. In your scenario, please try to change the KTC-Umlage_Euro, 1TC-SI, 1TC-DEV DAX to the Power Query, then use the "Unpivot other columns" feature suggested by @dkay84_PowerBI.

 

You can use the Group By to get count value, and Merge Queries to get related columns from other table. See:

 

Common query tasks in Power BI Desktop

Shape and combine data in Power BI Desktop

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

So if I’m right there isn't any possibility to use DAX Tables in the query editor. Or to write the dax query after all to a database?

 

Best regards

Peter

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors