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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
devitus
Frequent Visitor

Distinct values from columns in multiple tables (with ability for bi-directional filtering)

devitus_1-1626969677127.png

 

Hi,

I'd like to ask for advise with regards to this setup.

I have a number of tables in a dataset that contain performance of different advertising campaign types split by date. In addition to metrics, these tables contain text values that represent various campaign settings, such as advertised product, targeting type, etc. The tables need to remain separate as - while the above image shows the same layout - they differ in terms of metrics they show and require different logic to be applied in Power Query. In addition to that, their sizes exceed 5MM rows each and I'll be using incremental refresh, so keeping them separate is the best option to minimize refresh times.

For reporting purposes, I need to be able to summarize performance by distinct text values contained in each table, as well as be able to filter data in both directions (from the collection of distinct values pulled from each table to the data contained in the tables, and backwards).

I have used DISTINCT and UNION functions alongside a FILTER to generate a calculated column while excluding blank values as so:

 

 

Distinct Text Values = 
    DISTINCT(
        UNION(
            FILTER(VALUES('Campaign Type 1 Table'[Text Values]), 'Campaign Type 1 Table'[Text Values] <> ""),
            FILTER(VALUES('Campaign Type 2 Table'[Text Values]), 'Campaign Type 2 Table'[Text Values] <> ""),
            FILTER(VALUES('Campaign Type 3 Table'[Text Values]), 'Campaign Type 3 Table'[Text Values] <> "")
            )
        )

 

 

And have tried setting up relationships as follows:

devitus_2-1626970927945.png

However, it would only allow me to create relationship with bi-directional filtering for one pair of tables, blocking bi-directional relationship on others with the following error:

devitus_3-1626971025646.png

[UPDATE]: Campaign tables also feature relationships to other tables (CRM, OMS, etc.), but all relationships are downstream with one-way filters directed towards the Campaign tables.

 

I'd like to kindly ask for your help. My question is two-fold:

- Is this the most efficient way of achieving my goal? And if so:

- How do I solve the inability to set up bi-directional filtering on all three relationships?

Thanks in advance 🙂

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I agree with Amit, and I also suggest to make it Uni-directional or combining the data into 1 table using Power Query.

 

Additionally you can create a dimension for Campaign, if not already done. That way you will have a good star schema and Filtering will be governed by Dimensions - making it a better data model.

 

Assuming you already have a Date table connected.

 

Why do you need bi-directional filter? 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

I agree with Amit, and I also suggest to make it Uni-directional or combining the data into 1 table using Power Query.

 

Additionally you can create a dimension for Campaign, if not already done. That way you will have a good star schema and Filtering will be governed by Dimensions - making it a better data model.

 

Assuming you already have a Date table connected.

 

Why do you need bi-directional filter? 

amitchandak
Super User
Super User

@devitus , Bi-Directional relationship creates two-path/loop, when you have more than two tables. Better to make the 1-M , single directional  .

 

Also you can cosider appending tables if the have same column in power query

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.