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.

Reply
swheeler
Regular Visitor

dynamic filtering of a virtual table using a measure

Hello

 

I'm looking for advice on an issue (I'm new to Power BI).  I have data that is used for benchmarking.  The relevant table contains both the data to be benchmarked (dataA) and the data against which it will be benchmarked (dataB).

 

To separate the data so that dataA is not included in dataB, as it's not good practice to include the data to be benchmarked in the data that it will be benchmarked against, I have created a virtual table that is filtered by a measure [Active Org].  The measure is controlled by a slicer that selects the client allowing us to see their data (dataA) in comparison with dataB.

 

This virtual table it relatively straightforward:

 

VirtualTable1 = filter(DataTable,DataTable[OrgID] = [Active Org])
 
the table itself doesn't appear to physically filter, but measures based on the table respond to the slicer.
 
What I'd like to do it create the corresponding table containing dataB using the opposite command, such as:
 
VirtualTable2 = filter(DataTable,DataTable[OrgID] <> [Active Org])
 
but . . . I can't get this to work at all.
 
Can anybody advice here, please?
 
Kind regards
1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

calculated table is not supposed to be responsive to the slicer. I would suggest you simplify your report, upload your pbix file here and let us see how it could be solved.

View solution in original post

4 REPLIES 4
FreemanZ
Super User
Super User

calculated table is not supposed to be responsive to the slicer. I would suggest you simplify your report, upload your pbix file here and let us see how it could be solved.

thank you very much - I'm not oging to upload the pbix, but I take your point and advice.

 

 

swheeler
Regular Visitor

thank you - unfortunately that doesn't work 

djurecicK2
Super User
Super User

You could try this:

 

VirtualTable2 = filter(DataTable,NOT(DataTable[OrgID] = [Active Org]))

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.