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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Wiene24
Helper II
Helper II

Advance card condition time

Hi,

 

I have a measurement that calculates the average arrival time of our trucks.

Hereby I have created an Advanced Card visual but now I want to put a condition on it.

Only the condition tool doesn't allow you to put in a time format. How can I work my way around this?

 

Kind regards,

 

Tim Wijnen

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

Hi @Wiene24 ,

 

If your arrive time is format as HH:MM:SS, we can create following measure to convert this to second value,

 

AverageSecondValue =
HOUR ( [AverageArriveTime] ) * 3600
    + MINUTE ( [AverageArriveTime] ) * 60
    + SECOND ( [AverageArriveTime] )

 

Then we can use it as condition field, and set different color conditons in the condition label.

 

21.PNG22.PNG

 

23.PNG

 

BTW, pbix as attached.

 

Best regards,

 

Community Support Team _ DongLi
If this post helps, then please consider Accept it as the solution to help the other members find it more

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-lid-msft
Community Support
Community Support

Hi @Wiene24 ,

 

If your arrive time is format as HH:MM:SS, we can create following measure to convert this to second value,

 

AverageSecondValue =
HOUR ( [AverageArriveTime] ) * 3600
    + MINUTE ( [AverageArriveTime] ) * 60
    + SECOND ( [AverageArriveTime] )

 

Then we can use it as condition field, and set different color conditons in the condition label.

 

21.PNG22.PNG

 

23.PNG

 

BTW, pbix as attached.

 

Best regards,

 

Community Support Team _ DongLi
If this post helps, then please consider Accept it as the solution to help the other members find it more

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-lid-msft thanks, that is exactly what I needed!

amitchandak
Super User
Super User

Can you try format on top of the formula

Like

 

format Date = FORMAT(CALCULATE(max(DATA1[Date])),"MMM, DD YYYY")
Formated Value = FORMAT( CALCULATE(SUM(DATA1[Value])),"##,###.##")

 

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.