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


@ 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


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

Fabric certifications survey

Certification feedback opportunity for the community.

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.