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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
kumar27
Advocate V
Advocate V

Have Time On Y axis onto Power BI that can be used as a baseline for measures / calculations

Have you been into a situation, where you're looking for different ways to display time on the y axis, however it's not working out ..
Currently Power BI does not support this.

I was into a similar situation and hence was not able to find a direct visual or a way to do it. For my workaround which I did using DAX to get a similar 24 hour time frame over my Y axis, and then plotted other metrics as per my baseline.
Below is the code for the same. Lmk how you guys have handled it in past or the workarounds being used..

Time =
(
HOUR(MAX([Finish Time EST]))*10000
+MINUTE(MAX('cube Stats'[Finish Time EST]))/60*100*100
/*This gets the minutes to a percent(/60), then percent to number(*100), then number to proper place(*100)*/
+SECOND(MAX('cube Stats'[Finish Time EST]))/60*100
/*This gets the seconds to a percent(/60), then percent to number(*100)*/
)/10000 /*gets value to 0-24*/

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@kumar27 I *think* you want Chelsie Eiden's Duration: Chelsie Eiden's Duration - Microsoft Power BI Community


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

1 REPLY 1
Greg_Deckler
Super User
Super User

@kumar27 I *think* you want Chelsie Eiden's Duration: Chelsie Eiden's Duration - Microsoft Power BI Community


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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