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
Anonymous
Not applicable

how to make table show data not summarized by date

Hello
When I try to show the non-summarized field in the table power bi cannot identify the relationship between the tables.
I attach my file to make it easier for everyone.

I apologize for my English
please help me!

I want this:2019-10-24 (9).jpg

 

 

but I get this:2019-10-24 (10).jpg

pbix file 

Thank you very much in advance

1 ACCEPTED SOLUTION
vik0810
Resolver V
Resolver V

Hi @Anonymous,

 

convert the "id employee" column of your department table to integer.

Create a calculated column "current department" in absence table with following definition

 

current department = 
var IdEmployee = [id employee]
var DateOfAbsence = [date of absence]
var DepartmentDate = CALCULATE(MAX(Department[start date]), Department[start date] <= DateOfAbsence)
Return CALCULATE(VALUES(Department[Department]), Department[id employee] = IdEmployee, Department[start date] = DepartmentDate)

Use this column in your visualization instead of department.

 

View solution in original post

2 REPLIES 2
vik0810
Resolver V
Resolver V

Hi @Anonymous,

 

convert the "id employee" column of your department table to integer.

Create a calculated column "current department" in absence table with following definition

 

current department = 
var IdEmployee = [id employee]
var DateOfAbsence = [date of absence]
var DepartmentDate = CALCULATE(MAX(Department[start date]), Department[start date] <= DateOfAbsence)
Return CALCULATE(VALUES(Department[Department]), Department[id employee] = IdEmployee, Department[start date] = DepartmentDate)

Use this column in your visualization instead of department.

 

Anonymous
Not applicable

@vik0810 thank you very much. works perfectly

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.