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
Syndicate_Admin
Administrator
Administrator

DAX - RELATING VALUES TO NUMBERS

Hello everyone, I have the following problem, I would need to create time ranges, that is, classify a number of people by the company and the time at which they arrive, as conditional to say, if a person corresponds to the company xy their arrival time is equal to the entrance (08:15) then give me as a result that meets, however if their arrival is greater than or equal to 09:40 , give me as a result that you have a delay and if you are over 10:30, it does not meet! In short, it would be to put a condition by mixing the company name with the schedule, is it possible?

1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

arrive time<=08:15,meets

arrive time>=9:40&&arrive time<10:30, you have a delay

arrive time>=10:30,not meet

Is like this?

 

measure =
IF (
    MAX ( 'table'[arrive time] ) <= "08:15",
    "meets",
    IF (
        MAX ( 'table'[arrive time] ) >= "9:40"
            && MAX ( 'table'[arrive time] ) < "10:30",
        " you have a delay",
        IF ( MAX ( 'table'[arrive time] ) >= "10:30", "not meet", BLANK () )
    )
)

 

If not like this ,could you porvide a sample?

 

Wish it is helpful for you!

 

Best Regards

Lucien

 

View solution in original post

1 REPLY 1
v-luwang-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

arrive time<=08:15,meets

arrive time>=9:40&&arrive time<10:30, you have a delay

arrive time>=10:30,not meet

Is like this?

 

measure =
IF (
    MAX ( 'table'[arrive time] ) <= "08:15",
    "meets",
    IF (
        MAX ( 'table'[arrive time] ) >= "9:40"
            && MAX ( 'table'[arrive time] ) < "10:30",
        " you have a delay",
        IF ( MAX ( 'table'[arrive time] ) >= "10:30", "not meet", BLANK () )
    )
)

 

If not like this ,could you porvide a sample?

 

Wish it is helpful for you!

 

Best Regards

Lucien

 

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.