Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Solved! Go to Solution.
Hi,
Please try to create this calculated column in 'Empolyee' table first:
Column = DATEDIFF(RELATED(Contractor[Hire Date]),Employee[Hire Date],DAY)
Then try this color measure:
Color = IF(MAX(Employee[Column])=MINX(FILTER(ALL(Employee),Employee[Column]>=0),Employee[Column]),"#FF0000")
Apply this measure to the 'Employee'[Name] field, the result shows:
See my attached pbix file.
Best Regards,
Giotto
Hi,
Please try to create this calculated column in 'Empolyee' table first:
Column = DATEDIFF(RELATED(Contractor[Hire Date]),Employee[Hire Date],DAY)
Then try this color measure:
Color = IF(MAX(Employee[Column])=MINX(FILTER(ALL(Employee),Employee[Column]>=0),Employee[Column]),"#FF0000")
Apply this measure to the 'Employee'[Name] field, the result shows:
See my attached pbix file.
Best Regards,
Giotto
Create a common employee name dimension. Now take date diff from both tables and use that to do conditional formatting
refer how to take date diff
For highlight : https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values
@Anonymous
Try the below-calculated column
StatusCheck =
var _contractHireDate=LOOKUPVALUE(ContractorTable[Hire Date],ContractorTable[Name],EmployeeTable[Name])
var _hireDate= EmployeeTable[Hire Date]
var _result= IF(ISBLANK(_contractHireDate),"Not Present in Contractor Table",IF(_hireDate>_contractHireDate,"Employee hire date is greater than contractor hire date","Employee hire date is less than contractor hire date"))
return _result
Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 🙂
@nandukrishnavs hi im getting a error that "A table of multiple values was supplied where a single value was expected." for this dax measure
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.