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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Issues distinct selecting two columns in to new table

Hi,

I have two columns in different tables that I want to join in to one column in a new table. I did this with two other columns from this table and it worked great. But the secound time, it gives me nothing.

 

So I have this seintance:

List.Distinct(List.Union({GeneralOverview[#"Sales Contact"],Assignments[#"Sales Contact"]}))

which gives me an empty table.

I don't have any relationships between these tables.

From my Asignment table:

 

bilde.png

 

From my GeneralOverview table:

bilde.png

 

What am I missing?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

The formula worked, the problem was that I tried to use it when creating a table.

View solution in original post

6 REPLIES 6
AnkitBI
Solution Sage
Solution Sage

Can you share some sample data?

Anonymous
Not applicable

Hi,
What sampledata do you want?

Share your tables with sample data may be dummy data. What is the expected outcome?

In your description you are saying Join which corresponsds to Merge however formula used is for Union equivalent to Append. 

Anonymous
Not applicable

@AnkitBIOk, in my first post I had a screen shot of the two tables I want to merge in to one table with distinct values.  So that I get one table with unique names. It worked like a charm on two other columns, but these ones gives me 0.

 

This column from my table named Assignments:

bilde.png

 

tell me if you need other sample data.

 

And this column from my table called GeneralOverview:

bilde.png

Anonymous
Not applicable

@AnkitBIa bit more background info to make you understand better:

 

I'm making a dashboard which combines data from assignments and generaloverview.

My problem is that both tables had owning office (solved that by combining those values to an own table OwningOffice) and SalesContact. So I need to somehow be able to relate SalesContact to SalesContact to be able to get the slicers working.

Here is the dashboard. So, when I select owningoffice, I want the sales contacts and the calculations to be updated.

 

 

bilde.png

Here is my relations (the other tables are used in other views):

bilde.png

Anonymous
Not applicable

The formula worked, the problem was that I tried to use it when creating a table.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors