Forum Discussion
Stacked column chart with data from two tables
- 6 years ago
Hi sfink22 ,
You can do like this.
1. Get such a table by transforming(copy + append queries)
2. Create table relationship.
3. Create calculated columns in [Date] table.
P1_time = LOOKUPVALUE( '%time'[Phase 1 Time], '%time'[Complexity], 'Date'[Complexity Rating] )P2_time = LOOKUPVALUE( '%time'[Phase 2 Time], '%time'[Complexity], 'Date'[Complexity Rating] )4. Add the calculated columns and the [Date] column to the visual.
Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
So are the tables supposed to be related on Complexity?
I would unpivot the % columns in your second table. Create a bridge table of distinct Complexity values. Create relationships on complexity columns, use the complexity column from your bridge table.
- sfink226 years agoHelper I
Yes, they are related by complexity. By a bridge table, do you mean a table that has a single column with the unique complexity values?