Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
don_writer
Helper II
Helper II

Relationships and reporting (likely CROSSFILTER)

Hi Gurus!

 

Here is my pickle:

I have an ActiveEmployee table:

UniqueID (data_as_of & employee_id)

data_as_of (last day of the month)

employee_id

company

division

department_id

headcount (always equals 1)

 

Separations table

uniqueID = data_as_of (last month) & employee_id

data_as_of (last day of the month)

termination_date (day of termination)

employee_id

department_id

termcount (always 1)

 

I have a Date Dimension table with the standard fields, Date, Month, Quarter, year, MonthNO, etc.

I have a transformed organization table where I redefine some Division and Company names. The Unique identifier on that table is department_id

 

I want to create a matrix, as an example. 

Rows - ActiveEmployee[company]

Columns - Month

Values = sum(ActiveEmployee[headcount]) AND sum(Separations[termcount)

 

Separations are not on that months ActiveEmployees (thus why the Separations UniqueID looks a month back).

This, of course, creates a situation where it won't display the most recent month's Separations due o the shift. I have the ability to adjust the employee_id, if need be.

 

How would you approach this? What would your model look like? And I am thinking the answer is likely in the relationships being one way and using a crossfilter for the sum of headcount and termcount. This feels like it should be simple and I have been doing this kind of data for ages but something seems to be escaping me.

 

Thanks for your help,

~Don

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi, @don_writer

I also think the main problem should be in create the relationship process.

So could you please share some data sample and expected output . You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.

 

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
LivioLanzo
Solution Sage
Solution Sage

Hi Don, is it possible to post sample tables? and what you try to achieve?  thx

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.