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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
nok
Helper III
Helper III

Table that combines distinct values ​​from different tables

Hello!

I have three tables in this structure:

Table1

LevelValue
AAA    12
BBB34

 

Table2

LevelCategoryValue
CCC      nbf            98
CCCrtr77
DDDght56

 

Table3

LevelType
EEE       Omn    
FFFInky
FFFNon

 

I want to create a single reference table that will serve as a filter in my dashboard and will be responsible for filtering all tables (table1, table2 and table3). This new table will have all the distinct values ​​of the Level column of each table, just like this:

Level
AAA
BBB
CCC
DDD
EEE
FFF

 

I created a new table in this format using this code:

 

UNION(VALUES(Table1[Level]), VALUES(Table2[Level]), VALUES(Table3[Level]))

 

 

However, when I try to relate this table to the tables from which it originates (table1, table2 and table3), I receive a circular dependency error.

 

How can I create a dynamic table that always has all the distinct values ​​of the Level column of each table so that I can relate to the tables and use it as a filter on my dashboard page?

1 ACCEPTED SOLUTION
muhammad_786_1
Super User
Super User

Hi @nok 

Just try this DAX formula, and it should solve the issue.

 

muhammad_786_1_0-1725918601966.png

 


Best Regards,
Muhammad Yousaf

 

If this post helps, then please consider "Accept it as the solution" to help the other members find it more quickly.

 

LinkedIn

View solution in original post

2 REPLIES 2
muhammad_786_1
Super User
Super User

Hi @nok 

Just try this DAX formula, and it should solve the issue.

 

muhammad_786_1_0-1725918601966.png

 


Best Regards,
Muhammad Yousaf

 

If this post helps, then please consider "Accept it as the solution" to help the other members find it more quickly.

 

LinkedIn

lbendlin
Super User
Super User

You are on the right track.  Whenever you get a circular reference in DAX you can just say "Pah!"  and implement this in Power Query.

 

= Table.Distinct(

Table.SelectColumns(Table1,{"Level"}) &

Table.SelectColumns(Table2,{"Level"}) &

Table.SelectColumns(Table3,{"Level"})

)

 

 

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 Kudoed Authors