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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
gsxr
Frequent Visitor

Cross filtering within the same table using another column

Hi, I would like to know if it's possible to cross filter within the same table but using another column. More specifically, my table looks like this:

CustomerActivity TypeActivity Result
C1T1R1
C1T2R2
C1T3R3
C2T1R4
C2T2R5
C3T1R6
C3T2R7
C3T3R8
C3T4R9



If I have this entire table in a table visual, and some other visuals like bar charts pie charts on the same page, then traditionally, if i click on "R9" in the table, cross filtering will make it work like only the last line of the table "C3 T4 R9" will appear on any other visuals. However, I want the cross filtering to work like it is based on the "Customer" column in the same row, not only just based on the "Result" column. So the resulting filter result would be showing all four lines of related to C3. Is that possible? 

 

Thank you for any help. 

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @gsxr ,

 

You can create a measure that aggregates based on a unique item in a field/column using ALLEXCEPT but other than that I can't think of a way for Power BI to do it automatically.


Here's a sample measure

Row count by Customer = 
CALCULATE ( COUNTROWS ( Data ), ALLEXCEPT ( Data, Data[Customer] ) )


As shown the screenshot below, C3 has for rows. The other visuals show this count even if only the row containing C3/T1/R6 is clicked.

danextian_0-1658271796944.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

1 REPLY 1
danextian
Super User
Super User

Hi @gsxr ,

 

You can create a measure that aggregates based on a unique item in a field/column using ALLEXCEPT but other than that I can't think of a way for Power BI to do it automatically.


Here's a sample measure

Row count by Customer = 
CALCULATE ( COUNTROWS ( Data ), ALLEXCEPT ( Data, Data[Customer] ) )


As shown the screenshot below, C3 has for rows. The other visuals show this count even if only the row containing C3/T1/R6 is clicked.

danextian_0-1658271796944.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

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