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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

View discussion in a popup

Replying to:
Poojara_D12
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