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 August 31st. Request your voucher.

Reply
Anonymous
Not applicable

How to show only if the two data selected in slicer match with my data?

Hi! So, I have the app name data along with the app category.


Some applications may be in the same application category, for example, A-1 and A2 are both included in the G50B category. I created a slicer, with a field consisting of the application name and category. I want to display sales when the application name and category match the one I selected.

The problem is that when I select A1, G50B in the slicer, the sales displayed are for all data that has A1 and G50B in it, including A2, A4, A6 and A8 applications because they are also in the G50B category. How do I filter to show sales data only when two selected data in slicers match with my sales data (only sales for A1 G50B)?

Farrah_24_0-1667953212295.png

Here's the data i used.
Data App Sales 

1 ACCEPTED SOLUTION

Hi @Anonymous ,

As I saw you bring the "App Name" and "App Category" from the "Sales" table to the Table Visual, but in your slicer, there are belong to the App_Date table. Otherwise, in your data model, you have more than one relationship between tables and as you know just one relation could be active each time (For your DM is on "App Name".

When we click on the "A-4" value in Slicer, the relation brings us the values that are connected via the "App Name = "A-4"".

It means, it is similar when we put a slicer on the Sales[App Name] and select the "A-4" value.

in my opinion, you need to develop a slicer on the Sales[App Category] and Sales[App Name] (that is the easiest solution), or create two other columns based on the value on the App_date table in Sales with UseRelationShip Dax Function (a bit complicated and not sure how it is possible for non-countable fields).

https://dax.guide/userelationship/

The existing solution :

MahyarTF_0-1668061729553.png

My Solution :

MahyarTF_1-1668061756718.png

Appreciate your Kudos and Please mark it as a solution if it helps you

Mahyartf

View solution in original post

5 REPLIES 5
MahyarTF
Memorable Member
Memorable Member

Hi,

If I am not mistaken, you created the column that is included the App Name and App Category.

If it is when you develop the Slicer on the specific column, the data should be filtered by the selected data.

I created the column and put the slicer on it :

MahyarTF_0-1667958321554.png

When I selected each one, the data is filtered :

MahyarTF_1-1667958359343.png

Please correct me if I am wrong or misunderstood.

Mahyartf
Anonymous
Not applicable

Thankyou for your reply!

Yeah you got it right, the data should be filtered by the two selected value on slicer. The difference from your demo is i got two field (app name and category) in one slicer, like the photo below. Even though i try to select only one app from the category, for example A4 in category G50B, It also shows sales for A4 in another category, which is G51.

How do i filter for chart to show only A4 in category G50B?

Thankyou in advance!


 

Farrah_24_0-1667977983900.png

 

Hi @Anonymous 

It is a bit wired for me,

this is my result :

1) when nothing is selected :

MahyarTF_0-1668037237499.png

2) When I select the 'A-4' in slicer :

MahyarTF_1-1668037307432.png

May I ask you to share your sample PBIX file somewhere, maybe I could figure it up ?

 

Mahyartf
Anonymous
Not applicable

Here's the pbix i use. I wondering if it has something to do with cross filter driection. I used direction "both" for the relationship between app name and app category.

Thanks in advance!

App sakes File 

Hi @Anonymous ,

As I saw you bring the "App Name" and "App Category" from the "Sales" table to the Table Visual, but in your slicer, there are belong to the App_Date table. Otherwise, in your data model, you have more than one relationship between tables and as you know just one relation could be active each time (For your DM is on "App Name".

When we click on the "A-4" value in Slicer, the relation brings us the values that are connected via the "App Name = "A-4"".

It means, it is similar when we put a slicer on the Sales[App Name] and select the "A-4" value.

in my opinion, you need to develop a slicer on the Sales[App Category] and Sales[App Name] (that is the easiest solution), or create two other columns based on the value on the App_date table in Sales with UseRelationShip Dax Function (a bit complicated and not sure how it is possible for non-countable fields).

https://dax.guide/userelationship/

The existing solution :

MahyarTF_0-1668061729553.png

My Solution :

MahyarTF_1-1668061756718.png

Appreciate your Kudos and Please mark it as a solution if it helps you

Mahyartf

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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.

Top Kudoed Authors