Forum Discussion
Relationship not working in Pivot tables.
I have a table of 2 columns, GROUP and KEY, where KEY is the status of a GROUP.
One group can have many status {A, B, C, ...}. And the status can be ordered as A --> B --> C .. . (In the real scenario, it is not order alphabetically).
My goal is to determine the minimum status of each group. So, I created a dimension table that map the status into ID and sort them based on that. Then, created a relationship using KEY.
here is the data and the Model.
But when I use Pivot table to get Min of ID, relationship is not working. It looks like CROSS JOIN rather than INNER JOIN.
please suggest what to do to make it work?
Hi Tmo
Can you plese try setting the relationship direction to "both"
Best regards
Michael
-----------------------------------------------------
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Appreciate your thumbs up!
@ me in replies or I'll lose your thread.
2 Replies
- Mikelytics
Resident Rockstar
Hi Tmo
Can you plese try setting the relationship direction to "both"
Best regards
Michael
-----------------------------------------------------
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Appreciate your thumbs up!
@ me in replies or I'll lose your thread.- TmoNew Member
It works!!! thanks.