Forum Discussion
Data Modeling (Relationship issue)
Hello Brent_LaCorte
Is this fine now
The .pbix file is given below for your quick reference.
https://drive.google.com/file/d/16UHr3-dPrMM21woHpHiZjg0F81m6qxTx/view?usp=sharing
I hope this helps.
Regards
Kumail Raza
Good morning Kumail
I appreciate the quick response! This would absolutely normally work. However, the data sets that I am working with normally don't have the Supervisor attached to them. It's normally just the associate and the shop.
- Kumail5 years agoImpactful Individual
Hello Brent_LaCorte
Its the calculated column added to the data table to get the Associate and Shop relationship working in the model.
In the original data, you can also add this column in using the following dax function and create an inactive relationship, in the data model.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and I would love to see your like.
Regards
Kumail Raza
- Brent_LaCorte5 years agoNew Member
Kumail I see! You forced Power BI to add the column there. I was able to replicate in Excel through the data model and that does indeed work.
A caveat though. If I wanted a broader solution... for instance the heirarchy goes up to Manager and Director levels. Would I then have to create the same functions and add their names to the data set that way? Is there another way to make it flow that I only need to use the heirarchy for the splicers or will I need to create multiple functions for the multiple data sets that I am analyzing?
- Kumail5 years agoImpactful Individual
Hello Brent_LaCorte
It is because Joe and Jim have transaction data from Shop # 3 and Shop # 4 .
If you remove incorrect data from data table, things would look more relevant.
Hope this helps.
Regards
Kumail Raza
- Brent_LaCorte5 years agoNew Member
Kumail I apologize, there are a lot of things I am trying to solve with this one fix and I thought I brought them all up but I just noticed something else.
When filtering by Supervisor with the related function, it does indeed only show the results where they are the assigned supervisor but it also shows associates who are not on their team. In this instance Craig's results show transactions from Bill's team as well. I am trying to keep everything isolated to only showing results where that specific supervisior team had an impact. I am trying to make this go vertical as well, meaning Manager, Director, Region (if need be). I hope that made sense.