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

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

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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