cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

How to label the date/time on X axis of a montly max value v2

Hi all,

 

I am attempting to build a bar chart in Power BI that shows the max hourly value of every month. I had created a topic earlier; but it was 'solved' by an admin before i could attempt to try it myself: Link to previous post 

 

What i have right now in Power BI is this:

 

Capture.PNG

 

How do i convert the X axis to Date & time for every month? For example: Jan 29, 6:00AM; Feb 28th, 5:00AM, etc? Here is my Power BI excel raw data:

Capture v2.PNG

I like the format of the "date/time" column for the x axis. "Total Rolling MWs" is the column where i am pulling the max monthly value from.

 

Thanks for your help.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper III
Helper III

Re: How to label the date/time on X axis of a montly max value v2

I would like to share the soluntion with much thanks to parry2k's insight:

 

Firstly a measure is created to calc the monthly MW value:

Maximum MWs =
MAXX(
VALUES ( 'Calendar'[Month] ),
CALCULATE (
MAX ( 'Rolling Load'[Total Rolling MWs] )
)
 
A second measure to calc the max in a monthly timeframe:
Max Date/Time =
VAR __maxMWs = [Maximum MWs]
RETURN
CALCULATE (
MAX ( 'Rolling Load'[Date/Time] ),
'Rolling Load'[Total Rolling MWs] = __maxMWs
)
)
 
 Thanks Parry2k!

View solution in original post

7 REPLIES 7
Highlighted
Super User IV
Super User IV

Re: How to label the date/time on X axis of a montly max value v2

@helmsbk can you share the sample pbix file to get you the solution. Remove any sensitive information before sharing.






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





Highlighted
Helper III
Helper III

Re: How to label the date/time on X axis of a montly max value v2

I am unable to publish the Pbix file via dropbox nor OneDrive as my organization has the "anyone can see link" greyed out. If you are willing to recreate a 2-3 month period with random total values, that would work for me? Thank you for your help.

Highlighted
Helper II
Helper II

Re: How to label the date/time on X axis of a montly max value v2

 

Have you tried just pulling your Date/Time column into the axis under the month and using the expand down option?

 

Capture1.PNG

 

Highlighted
Helper III
Helper III

Re: How to label the date/time on X axis of a montly max value v2

Yes, I think your graph looks very similar to my graph posted in the OP. What i need is something more like this:

Capture v3.PNG

A graph showing the max hourly value on a per month basis. Thanks for the tip though 🙂

 

Highlighted
Helper III
Helper III

Re: How to label the date/time on X axis of a montly max value v2

I am still stuck on this.... 😞

Highlighted
Helper III
Helper III

Re: How to label the date/time on X axis of a montly max value v2

I would like to share the soluntion with much thanks to parry2k's insight:

 

Firstly a measure is created to calc the monthly MW value:

Maximum MWs =
MAXX(
VALUES ( 'Calendar'[Month] ),
CALCULATE (
MAX ( 'Rolling Load'[Total Rolling MWs] )
)
 
A second measure to calc the max in a monthly timeframe:
Max Date/Time =
VAR __maxMWs = [Maximum MWs]
RETURN
CALCULATE (
MAX ( 'Rolling Load'[Date/Time] ),
'Rolling Load'[Total Rolling MWs] = __maxMWs
)
)
 
 Thanks Parry2k!

View solution in original post

Highlighted
Super User IV
Super User IV

Re: How to label the date/time on X axis of a montly max value v2

@helmsbk I guess not any more 😁






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Galleries

Galleries

Looking for inspiration on how to present your data? Need instructional videos? Check out our Galleries!

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors