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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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