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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
koorosh
Post Partisan
Post Partisan

DAX

Hi All,
What is the DAX formula for a visual card that shows 11.45 as 11 hours and 45 minutes and shows 11.70 as 12 hours and 10 minutes?

6 REPLIES 6
lbendlin
Super User
Super User

One thing is for sure - with this cavalier attitude to time formats you won't be on Santa's Nice list.

 

lbendlin_0-1709598110663.png

 

Ahmedx
Super User
Super User

pls try this

Screenshot_4.png

Hi Ahmed and Ibendin,

The following table shows the daily work hours for a person. I want to show in a visual card how many hours and how many minutes the person worked. For instance 45 hours and 20 minutes.

koorosh_1-1709664073870.png

 

 

 

you explain where you got 45 hours and 20 minutes

koorosh_0-1709754259093.png

I want on visual card written "25 hours and 35" minutes.

You need to use the same approach. Add the fractions separately from the integers.   Mod the fractions by 60.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.