Forum Discussion
Anonymous
4 years agoNot applicable
Help needed for supplier alignment checking column in Power BI desktop
Hi, Please consider the following table: Package Project Supplier 1100 A1 X 1100 A2 X 1100 C1 Y 1100 A3 2200 P1 X The request I got is to show if the group ...
- 4 years ago
Hi Anonymous ,
You need to create the following column:
P1 = LEFT('Table'[Project],1)P1 = LEFT('Table'[Project],1)maxcount1 = IF ( 'Table'[count1] = MAXX ( FILTER ( 'Table', 'Table'[P1] = EARLIER ( 'Table'[P1] ) ), 'Table'[count1] ), "match", IF ( 'Table'[count1] <> MAXX ( FILTER ( 'Table', 'Table'[P1] = EARLIER ( 'Table'[P1] ) ), 'Table'[count1] ) && 'Table'[Supplier] = BLANK (), CALCULATE ( MAX ( 'Table'[Supplier] ), FILTER ( ALL ( 'Table' ), 'Table'[P1] = EARLIER ( 'Table'[P1] ) && 'Table'[count1] = MAXX ( FILTER ( 'Table', 'Table'[P1] = EARLIER ( 'Table'[P1] )),'Table'[count1]))),"mismatch" ) )Output refer:
Did I answer your question? Mark my post as a solution!
Best RegardsLucien
lbendlin
Super User
4 years agoThose cases are identical. "No supplier" is the same as "Different Supplier"