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
FedeI
Regular Visitor

Getting a status from another table (periods of time)

Hi to everyone

I would really apreciatte some help to solve an issue.

 

I have two different tables.

The first one has info of a delivery date . Based on that delivery, I need to get the status related to it on table 2.

 

Table 2 is structured like this:

Periods of timeStatus
08/10/2019H10H11 ´19
20/10/2019Nov ´19
06/11/2019H11H12 ´19
20/11/2019Dic ´19

 

I need the status considering in which period of time the delivery date is in.

For example, if the delivery is 15/11/2019, the status would be H11H12 ´19.

 

Which function would you use? How would you do it?

Thanks very much!!

Federico.

 

2 REPLIES 2
Anonymous
Not applicable

@FedeI 
Please create a measure as per below code and check if it works for you.

Measure = CALCULATE(MAX(StatusInfo[Status]),TOPN(1,FILTER(ALL(StatusInfo),StatusInfo[Periods of time]<=MAX(DeliveryDate[Date])),StatusInfo[Periods of time]))

 

Hi @Anonymous, how are you?

 

First of all, thank you for your answer.

 

I cant use that formula because I need a single result for each line in my table 1.

I need a formula I can use in a column.

 

In adittion, the status i need to get from the other table would have "text" format. I suppose I will not be able to use the MAX function.

 

Fede.

 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.