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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Dannyd104
Frequent Visitor

Filtering Max/ Min by a set of dates

Hello everyone,

I am relatively new to Power BI and am still learning DAX.

 

I am currently pulling in data from a website which gives me the temperature of a specific area five days out. The data gives multiple temperatures per day (one every 3 hours or so). Right now I am trying to build measures to get the MAX and MIN of the temperatures per day, but am struggling to come up with the formulas. 

 

I currently have the following formula:

MAXVALUEDATE=CALCULATE(MAX)[Temp]),FILTER(Forecast,[DATE]))) and it is only giving me the Max value for all the dates that are imported.

 

 

 

Screen shot of Temperature.PNG

1 ACCEPTED SOLUTION
Anushka
New Member

Hi,

 

You can get a summarized table using this,

 

 

Table = GROUPBY(Forecast

                           ,Forecast[Date]

                           ,"MaxTemp",MAXX(CURRENTGROUP(),Forecast[Temp])

                           ,"MinTemp",MINX(CURRENTGROUP(),Forecast[Temp])

                           )

 

View solution in original post

2 REPLIES 2
Anushka
New Member

Hi,

 

You can get a summarized table using this,

 

 

Table = GROUPBY(Forecast

                           ,Forecast[Date]

                           ,"MaxTemp",MAXX(CURRENTGROUP(),Forecast[Temp])

                           ,"MinTemp",MINX(CURRENTGROUP(),Forecast[Temp])

                           )

 

Thank you very much!

 

I had not considered the approach of making a new table, but it summarizes everything perfectly.

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors