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.
Hi all,
I have this table:
As you can see we have a duplicate in "CompanyID3". What I would like to achieve is to merge the 2 rows where "CompanyID3" = 13087, where the one with an ID in "CompanyID1" is the winner. Meaning - is there a duplicate in ID3, then the one with value in ID1 (if any) wins.
Is it possible?
Solved! Go to Solution.
Hi,
Please try to create this calculated column:
Column =
var id3 = 'Table'[Companies.CompanyID3]
var check = CALCULATE(COUNTROWS('Table'),FILTER('Table','Table'[Companies.CompanyID3]=id3))
return
IF(check=2&&'Table'[Companies.CompanyID1]=BLANK(),0,1)
Then apply it to the original table visual, the result shows:
Hope this can help.
Best Regards,
Giotto Zhi
Hi,
Please try to create this calculated column:
Column =
var id3 = 'Table'[Companies.CompanyID3]
var check = CALCULATE(COUNTROWS('Table'),FILTER('Table','Table'[Companies.CompanyID3]=id3))
return
IF(check=2&&'Table'[Companies.CompanyID1]=BLANK(),0,1)
Then apply it to the original table visual, the result shows:
Hope this can help.
Best Regards,
Giotto Zhi
Hi @PeterStuhr ,
Check the post below believe that you can make some similar option for your data.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsCovering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
97 | |
82 | |
67 | |
61 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |