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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
CMccown
Helper I
Helper I

Return values for specific date based on result of a measure

I have a table that was originally produced in Excel and reflects the following data:

 
 

Class Load.JPG

 

I created a measure that finds the monthly system peak value correctly but I need to return the values for each hour (1-24) on the date of the monthly peak in a matrix or table. The screen shot below shows what my matrix returns when I use the measure for values with hour ending for rows and month name for columns. 

 

The measure for monthly peak is: 

Monthly Peak Load = CALCULATE(MAX('System_Load'[Hr Sys Load]),FILTER('System_Load','System_Load'[Month]))
 
Screen shot of matrix:
Matrix Screenshot.JPG
 

The matrix shows (for example) the peak for all values of hour 1 in January which happens to be on January 1, 2019 (1108), however the overall max peak value for January occured on January 6 (1480) so I need to return the values from hour 1-24  on January 6, 2019. If the values from January 6 populated, hour 1 would be 1039 not 1108.

Any help is greatly appreciated!

 

 

 

 

1 ACCEPTED SOLUTION
CMccown
Helper I
Helper I

Figured out a work around for this, it doesn't display values for every month of the year in one table but this should work. 

I create a measure to calculate the monthly peak load value:

Monthly Peak Load = CALCULATE(MAX('System_Load'[Hr Sys Load]),FILTER('System_Load','System_Load'[Month]))
Created a table with Hour Ending and Hourly System Load as columns with filters for Year and Month on the page. and the following date filter:
CMccown_0-1675873795844.png

 

View solution in original post

1 REPLY 1
CMccown
Helper I
Helper I

Figured out a work around for this, it doesn't display values for every month of the year in one table but this should work. 

I create a measure to calculate the monthly peak load value:

Monthly Peak Load = CALCULATE(MAX('System_Load'[Hr Sys Load]),FILTER('System_Load','System_Load'[Month]))
Created a table with Hour Ending and Hourly System Load as columns with filters for Year and Month on the page. and the following date filter:
CMccown_0-1675873795844.png

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.