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 August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.