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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.