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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
deepak_d03
Helper I
Helper I

matrix rows displayed from the slicer selection

I need to show the average temparature across multiple cities. There are so many cities and I don't want to display all of them. The plan is to select the desired cities via a slicer so those selected cities will be displayed in the matrix visual along with the average temperatures. How do I do that? 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.

I tried to create a sample pbix file like below.

 

Jihwan_Kim_1-1732596123047.png

 

 

Jihwan_Kim_0-1732596099997.png

 

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

3 REPLIES 3
Kedar_Pande
Super User
Super User

@deepak_d03 

You can achieve this by using a slicer and a measure:

Drag the column containing city names to the slicer visual.

Create a Measure for Average Temperature: 

Average Temperature =  AVERAGE('TemperatureData'[Temperature])

Add Fields to the Matrix Visual:

Drag the City column to the Rows field.
Add the Average Temperature measure to the Values field.

 

💌 If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn

 

 

Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.

I tried to create a sample pbix file like below.

 

Jihwan_Kim_1-1732596123047.png

 

 

Jihwan_Kim_0-1732596099997.png

 

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Poojara_D12
Super User
Super User

Hi @deepak_d03 

To implement this, you can use a slicer in Power BI to filter the desired cities, and the matrix visual will dynamically update to show the selected cities along with their average temperatures.

 

  • Add a Slicer

    • Drag the City column to a slicer visual.
    • Enable Multi-select for selecting multiple cities.
  • Create a Measure

    • Write this DAX formula:

 

Average Temperature = AVERAGE('YourTable'[Temperature])
​

 

  • Set Up the Matrix Visual

    • Add City to Rows.
    • Add the Average Temperature measure to Values.
  • Test

    • Use the slicer to select cities.
    • The matrix updates to show only the selected cities with their average temperatures.

 

Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Poojara
Data Analyst | MSBI Developer | Power BI Consultant
Please Subscribe my YouTube for Beginners/Advance Concepts: https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS 

 

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a "Kudos"

Kind Regards,
Poojara - Proud to be a Super User
Data Analyst | MSBI Developer | Power BI Consultant
Consider Subscribing my YouTube for Beginners/Advance Concepts: https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS

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.