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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Flag based on data in other rows

Hello

 

I'm giving this another go because the solution provided wasn't really clear and didn't articulate for me customizable fields (Caution: I am green in this space so I would need step-by-step or a screen image of the DAX function you write so i can try to mimic using my real data)

 

I have a basic dataset like this

 

CustomerIDProductID
11111A
22222C
33333A
22222C
44444A
66666A
55555B

 

What I'm trying to do is to add a column that will flag other purchases that this same customer made elsewhere in the table, so I want my final dataset to look like this

 

CustomerIDProductIDProductAFlagProductBFlagProductCFlag
11111AYNN
22222CYNY
33333AYNN
22222AYNY
44444AYYN
66666AYNN
44444BYYN
1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

All DAX forluma for creating calculated columns are in the attached pbix file.

 

Jihwan_Kim_0-1663336617530.png

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


View solution in original post

1 REPLY 1
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

All DAX forluma for creating calculated columns are in the attached pbix file.

 

Jihwan_Kim_0-1663336617530.png

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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