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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.