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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
vickyArce
Frequent Visitor

Create a relation with a intermediate column name

Hi,

 

I have a table, with some formating(Groupby and Transpose) in power query, I lost the column that I need to create a relationship with, so the cross filtering is not working on the new formatted table.

 

Is there a way to create a relation with a intermediate column name? Or another solution?

 

Or maybe there is a way to do the group by and pivot on a visual instead of doing it in power query?

 

Thank you

1 ACCEPTED SOLUTION
vickyArce
Frequent Visitor

Thank you for your reply, finally I found a way to do it in Matrix, and it worked out perfectly.

View solution in original post

3 REPLIES 3
vickyArce
Frequent Visitor

Thank you for your reply, finally I found a way to do it in Matrix, and it worked out perfectly.

vickyArce
Frequent Visitor

The original table:

FurnaceNumberSumEntrantSumEntrantDRISumEntrantScrapSumEntrantAlloysSumModifiant
B1165.6114.70.010384.0-6.1
A2181.183.70.010954.30.1
A3175.681.00.010133.30.1
B4171.965.10.12569.50.1
A5179.0140.20.01561.01.6
B6184.3134.10.07449.01.5
A7180.2127.90.09721.01.5
A8180.7129.10.010573.01.5
A9171.0115.70.011560.01.4
B10180.4129.50.010092.01.5
B11173.4117.90.010602.01.4

 I needed to group by the Furnace label, and summarize all the columns, and then pivot the table to this format:

FurnaceAB
SumEntrant  
SumEntrantDRI  
SumEntrantScrap  
SumEntrantAlloys  
SumModifiant  

 

I was able to do all those formattings in power query, but the problem is at the end, I lost my Number column, on which I use the crossing filtering  through table relationships.

Hi @vickyArce ,

You can duplicate a query table and do unpivot column on it(keep furnace and types), then use this table as bridge to link two tables.(furnace to original furnace field, furnace type to furnace table)

Unpivot columns (Power Query)

Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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