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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
PbiCeo
Helper II
Helper II

Create a new table with DAX from an existing table

Hello everyone,

 

I want to create a new table with DAX from an existing table according to a specific condition like below SQL:

select distinct col1 ,col2, col3 from Table1 where col1 > 150 

 Please tell me how to wirte DAX syntax for that?

Thanks in advance,

Vladi

2 REPLIES 2
amitchandak
Super User
Super User

@PbiCeo ,

You can try like

summarize(filter(table,table[col1] > 150),table[col1] ,table[col2], table[col3])

 

in case of visual, you can put three columns on visual and put a visual level filter col1>150

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Greg_Deckler
Community Champion
Community Champion

@PbiCeo - Try:

New Table =
DISTINCT(
  SELECTCOLUMNS(
    FILTER('Table',[col1] > 150),
    "col1",[col1],
    "col2",[col2],
    "col3",[col3]
  )
)


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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.