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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Relate timestamps with uncertainty

Dear datanauts,

 

I have trouble relating two datasets:

 

One of which contains my Fact production data (batch ids, start/end dates,  product names etc.) and another carries Fact IssueHandling (with category of incident, start/end date, time lost, solution text etc.)

 

What I'm trying to do is to find back for each incident the name of the product produced during the incident.

Back in Excel I used a "MATCH()", which performed a lookup by comparing the timestamp of the incident notification to the nearest lower timestamp of the production data.

 

But the excel solution is of course a "calculated column"...

 

Is there a way to ´rebuild' this in PowerBI? Preferably as measure, if no other way as calculated column...

 

 

Thanks in advance...

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

Hi Jan_Orlandini,

 

Power bi also support calculate column, please refer to this documentation : https://docs.microsoft.com/en-us/power-bi/desktop-tutorial-create-calculated-columns.

 

Regards,

Jimmy Tao

Anonymous
Not applicable

Hi Jimmy,

 

of course, I know about that: But still the question remains - what DAX code do I need to make it happen?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.