Forum Discussion
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
Thank you for your reply, finally I found a way to do it in Matrix, and it worked out perfectly.
3 Replies
- vickyArceFrequent Visitor
The original table:
Furnace Number SumEntrant SumEntrantDRI SumEntrantScrap SumEntrantAlloys SumModifiant B 1 165.6 114.7 0.0 10384.0 -6.1 A 2 181.1 83.7 0.0 10954.3 0.1 A 3 175.6 81.0 0.0 10133.3 0.1 B 4 171.9 65.1 0.1 2569.5 0.1 A 5 179.0 140.2 0.0 1561.0 1.6 B 6 184.3 134.1 0.0 7449.0 1.5 A 7 180.2 127.9 0.0 9721.0 1.5 A 8 180.7 129.1 0.0 10573.0 1.5 A 9 171.0 115.7 0.0 11560.0 1.4 B 10 180.4 129.5 0.0 10092.0 1.5 B 11 173.4 117.9 0.0 10602.0 1.4 I needed to group by the Furnace label, and summarize all the columns, and then pivot the table to this format:
Furnace A B 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.
- AnonymousNot applicable
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)
Regards,
Xiaoxin Sheng
- vickyArceFrequent Visitor
Thank you for your reply, finally I found a way to do it in Matrix, and it worked out perfectly.