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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.