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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
KoalaPBI
Frequent Visitor

DAX to create new column from distinct values of other two columns in the same table

Hi Community,

 

How can I create a new column (NOT Table) from distinct values of other two columns in the same table?

 

Thanks!

2 REPLIES 2
AbbasG
Memorable Member
Memorable Member

Hi, @KoalaPBI 

 

I have tried with some sample data, which may help you.

 

Step 1: Create a conditional column to identify if the values are distinct or not.
If value1 <> value2 then 1 else 0


Step 2:
Add visual level filter to show only distinct values. i.e.1

Attached pbix for your reference.- https://1drv.ms/u/s!ArEx6MabNbWofjwTj6Ampd8nC9s?e=lCOBLy

@AbbasG thanks, but this is not what I am trying to achieve.

Let me explain a bit on what I expect: 

KoalaPBI_0-1665557788981.png

So, the new column is a union(distinct(values(col1)),distinct(values(col2))

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