Use the following measure"
[Value % (top N)] =
var denominator = CALCULATE ( [Value], ALLSELECTED ( Data_table ))
var rank = RANKX ( VALUES ( Data_Table[Group] ), [Value] ))
return IF ( rank <= *N*, DIVIDE ( [Value], denominator ))
And remove the TOP N filter for visualization
Want to learn more about Power Bi, Refer: power bi tutorial