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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
AgoZ_KH
Resolver I
Resolver I

Create a TABLE with separate columns from a single column in another Table

Hi All Community!

 

I'm try to create aDAX formula to achive this result.

 

Suppose you have a table like this:

AVG 1AVG2week
3,37%84,52%w37
5,66%6,49%w37
70,45%6,13%w38
15,29%1,99%w38
16,56%0,49%w39
11,52%0,38%w39
17,06%0,00%w40
6,15%99,53%w40

 

My goal is from this table create another like this:

w37_AVG1w37_AVG2w38_AVG1w38_AVG2w39_AVG1w39_AVG2w40_AVG1w40_AVG2
3,37%84,52%70,45%6,13%16,56%0,49%17,06%0,00%
5,66%6,49%15,29%1,99%11,52%0,38%6,15%99,53%

 

I'm tryng some DAX function (i.e. Table command with Filter) but at the moment I'm still in the dark !

 

Thanks in advance to whom can hel me ...

 

Ago

1 ACCEPTED SOLUTION
v-xulin-mstf
Community Support
Community Support

Hi @AgoZ_KH,

 

Here is the demo, please try it.
Here is the output:

v-xulin-mstf_0-1613122995260.png

 

Best Regards,

Link

View solution in original post

4 REPLIES 4
v-xulin-mstf
Community Support
Community Support

Hi @AgoZ_KH,

 

Here is the demo, please try it.
Here is the output:

v-xulin-mstf_0-1613122995260.png

 

Best Regards,

Link

Hi @v-xulin-mstf have a nice day!

 

really this seem a Columbus egg solution!! It's seem totally meet my requirement!!

Thanks a lot!!

A.

amitchandak
Super User
Super User

@AgoZ_KH , Seem like one column is missing, because not sure how your second row.

Unpivot or transpose

https://radacad.com/pivot-and-unpivot-with-power-bi
Transpose : https://yodalearning.com/tutorials/power-query-helps-transposing-data/

 

In matrix - Show on row option with selected Col /rows

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Thanks @amitchandak 

excuse my late answer! It's a good suggestion, but in my scenario the problem is pivot in the same time two columns and this seem not to achieve my principal goal.

Ago

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.