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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Sudharsanan
Helper III
Helper III

Populating the value once when there is duplicate.

Hi friends,

 

I need some help in achieving the below using DAX. Table 1 is with Unique ID and table 2 is with duplicated ID, so i want to pull the value from Table 1 where i need to populate the value only once when there is duplicate ID's.

 

Table 1

IDValue
A2
B4
C5
D6
E7
F9

 

Table 2

IDValue
A2
B4
B 
C5
D6

 

Thanks in Advance

3 REPLIES 3
eTribble
Advocate II
Advocate II

IDK if i would do that with dax, I would just do it in the power query editor, and remove duplicates.

Is there a particular reason you would want a blank value with a duplicate ID?


eTribble
Advocate II
Advocate II

Im not sure im understanding what you want, but if I had to guess...

Your wanting to Pull the value for B in Table 2 Since it has a duplicate ID (B) in it?

So your end result would be 4?

Or what is your expected output supposed to look like?

@eTribble Thanks for the quick turn

 

Yes you are right. When i have a duplicate id i need to have the value for first id and the remaing should be blank.

this is my expected result

IDValue
A2
B4
B 
C5
D6

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.