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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
AndrewWstry
Frequent Visitor

Call a measure in another table to get that value by date for each user

Hello,

 

I am having trouble trying to pull in a measure for MIN dates into another table to perform a calculation based on that date. When I try to pull in the column from the other table is defaulting to the earliest date for every single row. These tables are indirectly related by user ID to a UserInfo table. Any help is very appreciated!

First punch in time measure in the timecard table

AndrewWstry_0-1680637262496.png

 

When I type in First punch in time (M) in the Job History table its all defaulted to 1/9/2023 for every user

AndrewWstry_1-1680637397825.png

 

I am trying to determine date of operation based on the First Punch In time measure example:

Sort Date = IF('JobHistory'[Sort Date] < [First Punch In Time (M)], 'JobHistory'[sort date] +1 , 'JobHistory'[sort date])

 

1 REPLY 1
Anonymous
Not applicable

Hi @AndrewWstry ,

If I understand correctly, it seems that it involves two tables: timecard table and Job History table. The calculated column [First Punch In Time (M)] is the MIN data for per user in the timecard table. And you want to compare the [Sort Date] in the table 'JobHistory' with [First Punch In Time (M)], if 'JobHistory'[Sort Date] is less than  [First Punch In Time (M)], then 'JobHistory'[Sort Date]+1 else 'JobHistory'[Sort Date]. Am I right?

Is there any relationship created between the timecard table and Job History table? If yes, please provide the relation info. The final expected result is a calculated column or measure? And could you please provide some raw data in the tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:

How to provide sample data in the Power BI Forum

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors