Forum Discussion

Totoro's avatar
Totoro
New Member
3 years ago
Solved

Top N filter plus one specific item

Hi

The data and desired outcome (top 3 in rank plus colour=pink if it is not in tope 3) are as below:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The measure Rank = RANKX(ALL(TableData[Colour]),CALCULATE(SUM(TableData[Stock]))) seems ok but the other measure

Top3+Pink = IF([Rank]<4 ||'TableData'[Colour] = "Pink",1,0) doesn't work.  Any advice please.  Thanks.

 

 

 

6 Replies