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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
ravimerugu
Advocate II
Advocate II

cross filtering within the same table

Hi,

   I am new to Power BI. I am trying to create a report that has a map with the user count in different locations, two stacked bar charts for income range and age groups, and a pie chart for gender. This data is pulled from two tables, a user table and a demographics table. A sample data from the demographics table is given below. Data for the map is from the user table only. It's a one to many relationship between user table and demographics table. I am able to cross filter between the map and the pie chart and the stacked bar charts. It also works fine between income chart and map and age chart and the map. However, I am not able to cross filter age and gender visuals based on income changes or income and gender visuals based on age changes.

 

As you can see from the sample data from the demographics table shown below, filter used for the charts is the field QUESTION_NAME. How can I make the cross filter work across the page for all visuals in this case? Thanks in advance.

 

USER_IDQUESTION_NAMEMULTICHOICE_RESPONSE
8220224GenderMale
8220497Age18-24
8220497Autos - Income$85,000 to $89,999
8220497GenderFemale
8220494Age65+
8220494Autos - Income$25,000 to $29,999
8220494GenderMale
8220518Age25-34
8220518Autos - Income$35,000 to $39,999
8220518GenderFemale
8220526Age35-44
8220526Autos - Income$65,000 to $69,999
8220526GenderFemale
8220577Age45-54
8220577Autos - Income$140,000 or more
8220577GenderFemale
8220580Age55-64
8220580Autos - Income$80,000 to $84,999
8220580GenderMale
8220782Age18-24
2 ACCEPTED SOLUTIONS
parry2k
Super User
Super User

basically you need to pivot your table whcih can be achieved thru query editor, here is the link for sample pbix I created from your data as reference.



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.

View solution in original post

Ashish_Mathur
Super User
Super User

Hi,

 

Your dataset is not well arranged.  It should actually be a 4 column dataset with User_ID, Age, Autos - Income and Gender.  If you do not know how to cary put the transformation, let me know and i will help.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

 

Your dataset is not well arranged.  It should actually be a 4 column dataset with User_ID, Age, Autos - Income and Gender.  If you do not know how to cary put the transformation, let me know and i will help.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks Ashish. It is along the same lines as what parry2k suggested. It resolved my issue.

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
parry2k
Super User
Super User

basically you need to pivot your table whcih can be achieved thru query editor, here is the link for sample pbix I created from your data as reference.



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.

Thanks parry2k. It works!!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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