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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
DTreg1
New Member

DAX Distinct String

I am trying to create a new table that returns distinct string from a data table. I created the new table, created a new column with TAGNO = DISTINCT(Table1[tag]) and nothing was returned. Where am I going wrong?

3 REPLIES 3
CPasten
Frequent Visitor

Have you tried with CALCULATETABLE( DISTINCT(Table1[tag]) )

🤔

Abduvali
Skilled Sharer
Skilled Sharer

HI @DTreg1,

 

If you trying to get a column or table, say with unique Ref number or date then the easiest thing is in Edit query Mode:

  1.  Duplicate your table
  2. Remove columns you don't need
  3. Highlight desired column, right click and select remove duplicates

 

This will leave you with just Distinct values in that column and you will have a table with all editable  functions unlike when you use DISTINCT (distinct creates a table but you have limited functionality on it)

 

 

Regards

Abduvali

 

 

Zubair_Muhammad
Community Champion
Community Champion

Hi @DTreg1

 

Did you add it as a Calculated Column?

 

DISTINCT returns a TABLE

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.