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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Amit92
New Member

Applying 2 filters in Same table

Hi Team

I have a sample data as below:

Amit92_0-1724773897210.png


I need to create 2 measures based on the category:
Person Amt should filter by Customer name and not Customer Name copy
Animal Amt should filter by Customer name copy and not Customer Name 
And i need to keep these 2 measures in the same table and the page contains 2 slicers (Customer name and Customer name copy) so that i could calculate the difference betwen them

I have added the measure as follows:

Person Amt = CALCULATE(SUM('Table'[Amt]), REMOVEFILTERS('Table'[Customer Name - Copy]))
Animal Amt = CALCULATE(SUM('Table'[Amt]),REMOVEFILTERS('Table'[Customer Name]))

and added both the measures in the single table, when i select any one of the slicer the measures are working fine but when i select both of them it is giving me as blank

Amit92_1-1724774211301.png

 


Can you guys help me please?

Thanks
Amit





1 ACCEPTED SOLUTION
NaveenGandhi
Super User
Super User

Hi @Amit92 

Create two disconnected tables using below 2 DAX and use them in your slicers.

Cust Name = VALUES('Table'[Customer Name])


Cust Name Copy = VALUES('Table'[Customer Name - Copy])



Then alter your existing 2 measure as bleow.

Person Amt = CALCULATE(SUM('Table'[Amt]), TREATAS(VALUES('Cust Name'[Customer Name]),'Table'[Customer Name]))

Animal Amt = CALCULATE(SUM('Table'[Amt]),TREATAS(VALUES('Cust Name Copy'[Customer Name - Copy]),'Table'[Customer Name - Copy]))Now you can get the expected output.

Now you can get the expected output.

NaveenGandhi_0-1724777524731.png

 


 I have attached the PBIX for reference.

If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

Follow me on LinkedIn!!!





View solution in original post

2 REPLIES 2
NaveenGandhi
Super User
Super User

Hi @Amit92 

Create two disconnected tables using below 2 DAX and use them in your slicers.

Cust Name = VALUES('Table'[Customer Name])


Cust Name Copy = VALUES('Table'[Customer Name - Copy])



Then alter your existing 2 measure as bleow.

Person Amt = CALCULATE(SUM('Table'[Amt]), TREATAS(VALUES('Cust Name'[Customer Name]),'Table'[Customer Name]))

Animal Amt = CALCULATE(SUM('Table'[Amt]),TREATAS(VALUES('Cust Name Copy'[Customer Name - Copy]),'Table'[Customer Name - Copy]))Now you can get the expected output.

Now you can get the expected output.

NaveenGandhi_0-1724777524731.png

 


 I have attached the PBIX for reference.

If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

Follow me on LinkedIn!!!





Wow! Geniously solved

Thanks Naveen

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.

Top Solution Authors