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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
emmawdmi22
Helper I
Helper I

Add filters on avg/max value

I am trying to make a 2x2 matrix of four different values, looking like this.
emmawdmi22_0-1695054408164.png

On my report I have a filter so you can filter by certain dates or deviceIds. When I create a calculated table, it takes the average or max of everything, so I can't filter when I try to, the values just stay the same.

 

Here is currently how I am making my table. How do I fix it so it will respond when I modify dates/deviceIds? I'm assuming something with AVERAGEX / MAXX, but I am still new to those operations.

 

 

 

Temperature = UNION(
	SELECTCOLUMNS(
		viewTelemetryPeakPlus_byDay, "Measure", "Delta T (Dt)", "Calc", "Average", "Data", AVERAGE(viewTelemetryPeakPlus_byDay[AvgDeltaT]), "Date", viewTelemetryPeakPlus_byDay[date], "deviceId", viewTelemetryPeakPlus_byDay[deviceId]
	), 
	SELECTCOLUMNS(
		viewTelemetryPeakPlus_byDay, "Measure", "Delta T (Dt)", "Calc", "Peak", "Data",MAX(viewTelemetryPeakPlus_byDay[PeakDeltaT]), "Date", viewTelemetryPeakPlus_byDay[date], "deviceId", viewTelemetryPeakPlus_byDay[deviceId]
	),
	SELECTCOLUMNS(
		viewTelemetryPeakPlus_byDay, "Measure", "Outside Air Temp (OAt)", "Calc", "Average", "Data", AVERAGE(viewTelemetryPeakPlus_byDay[AvgOAt]), "Date", viewTelemetryPeakPlus_byDay[date], "deviceId", viewTelemetryPeakPlus_byDay[deviceId]),
	SELECTCOLUMNS(
		viewTelemetryPeakPlus_byDay, "Measure", "Outside Air Temp (OAt)", "Calc", "Peak", "Data", MAX(viewTelemetryPeakPlus_byDay[PeakOAt]), "Date", viewTelemetryPeakPlus_byDay[date], "deviceId", viewTelemetryPeakPlus_byDay[deviceId])
	)

 

3 REPLIES 3
parry2k
Super User
Super User

Not sure what you mean.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


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.

parry2k
Super User
Super User

@emmawdmi22 if you creating a calculated table dynamically, it cannot take value from slicer/filters.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


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.

I will have a relationship between the Temperature table and the tables with date and deviceId. I already know this will work once I get this other piece working.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors