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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
douglasgomez
Regular Visitor

DAX DUPLICATE ORDERS

I need to create a condition so that if the value in column "A" is the same as in column "D" even if it is not in the same row, add a new column with a name that I determine.

 

Which DAX to do this?

3 REPLIES 3
mahoneypat
Microsoft Employee
Microsoft Employee

Just put "CLONE NVL" in place of the 1 inside the IF.  Also, if you don't want to see the 0, you can replace that with other text or just BLANK().

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


amitchandak
Super User
Super User

@douglasgomez , A new column like this will give you 1 if A is found in D

 

if(isblank(countx(filter(Table,[A] = earlier([D])),[A])),0,1)

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

And how do I get the word "CLONE NVL" instead of "1" on the line?

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.