Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
No, not asking for marriage advice. My marriage is fine but thanks for checking! 😄
I'm having trouble with a complex dataset that doesn't seem to fit the "star" model and I don't really see a way to make it (at any type of scale). I feel like this is probably a common problem but I haven't been able to find a solution that works for me yet. Maybe I'm not searching the right terms or am missing the point on something but I need help figuring out how to handle a modeling issue I've run into that is making me question my ability to use a single data model vs having to split it out based on specific ways I need to view the data.
Since this is a relatively large and complex SQL database for a CRM/ticketing system, I'll try to focus it on a specific set of the data. I think if I can solve this piece it will unlock how to actually deal with this everywhere else.
At a high level, the data is structured like this: I have employees ("Employees" table) that work on tickets ("Tickets" table) and projects ("Projects" table) in our system. They may or may not be assigned to ticket or project and may or not be scheduled ("Schedule" table) on them directly, but they can put time ("Time Entries" table) against them.
Here is a sample I mocked up of the tables and their relationships.
Employees.Employee RecID -> Projects.Project Manager RecID (inactive)
Employees.Employee RecID -> Tickets.Assigned Owner RecID (inactive)
Employees.Employee RecID -> Schedule.Employee RecID (inactive)
Employees.Employee RecID -> Time Entries.Employee RecID (active)
Projects.Project RecID -> Tickets.Project RecID (active, not all tickets are associated with a project though)
Tickets.Ticket RecID -> Schedule.Ticket RecID (active, not all tickets have a schedule, not all schedules are tied to a ticket)
Tickets.Ticket RecID -> Time Entries.Ticket RecID (active, not all tickets have a time entry, not all time entries are tied to a ticket)
Other key points:
One main goal is to be able to have a slicer or filter on the Manager column and the Report Card column of the Employees table and be able to see the Projects, Tickets, Schedule, and Time Entries for the various employees that match. Again, this is a very trimmed down version of the different ways we need to slice and view the data but it highlights the problem I have.
For example, if I want to show a table with time entries for a specific Manager/Report Card combination, no problem. If I want to then show all the projects assigned to those employees that match the filter, it breaks because the relationship is inactive.
Some things I've thought about or come across:
So I'm basically at the point of thinking I may need one dataset that is focused on Time Entries analysis and another dataset that is focused on Projects analysis. I don't think that scales well either because then I might need one for Schedule and other perspectives, and this sample doesn't include things like Companies, Contacts, Agreements, Sales Orders, Quotes, Opportunities, etc. that would all be unique perspectives. It would be a LOT of duplication between the datasets just to get different active relationships based on the way I need to display the data.
Any help would be appreciated. Hopefully I'm just dense and missing a simple concept.
Hi @Anonymous ,
You can use the inactive relationship in the function at the following URL:
https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in-power-bi
https://docs.microsoft.com/en-us/dax/lookupvalue-function-dax
https://community.powerbi.com/t5/Desktop/using-inactive-relationship/m-p/513670
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
96 | |
77 | |
66 | |
53 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |