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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Marvhall
Helper I
Helper I

Suppressing the second minimum value in a column

Greetings,

 

I am working with data that requires all values under 50 be suppressed AND if there is only one value under 50 in a column that the next lowest is also suppressed. (see examples). Rankx is unimportant unless I need it to complete the suppression.

 

I am working with one table, we will call it 'Reports'. 

I've tried using SWITCH statements, variables, etc. I can get close but not both at the same time. I am using a standard table to display information. 

 

Thank you for any assistance!

What I have

Group Total Count Rankx
A          10                5
B          107              3
C          103              4
D         342               2
E         3,984             1


What I need

Group Total Count Rankx
A          **                  5
B         107                3
C          **                 4
D         342               2
E         3,984             1

2 ACCEPTED SOLUTIONS

lbendlin_0-1715980445700.png

Rank = RANKX(allselected('Table'),calculate(sum('Table'[Total Count])),,ASC)

Show = if([Rank]>2 || [Rank]=2 && minx(ALLSELECTED('Table'),[Total Count])>=50,1,0)

View solution in original post

Thank you! That works great!

 

If the total count is a range, would it be this?

 

Show = if([Rank] > 2 || [Rank] = 2 && minx(ALLSELECTED('Table'), [Total Count]) > 1) && minx(ALLSELECTED('Table'), [Total Count]) <= 10, 1, 0) 

 

Thank you again

View solution in original post

7 REPLIES 7
lbendlin
Super User
Super User

RANKX is important, but you need to use it the other way round. Sort ascending by value.  Suppress Rank 1, and if Value 1 is less than 50 then suppress Rank 2 as well.

That's the part I'm having issues with too.

 

IF([_Total Count] <= 50, "**", [_Total Count] )  only suppresses values 50 and under
 
IF([_Total Count] <= 50 && [_Rankx] = 2, "**", [_Total Count]) doesn't work
 
I also tried
 
var _min = IF([_Total Count] <= 50, 1, 2) 
var _secMin = if([_rankx] = 2, 1, 2)
 
return
 
SWITCH(
TRUE(),
_min = 1 && _secmin = 1, "**",
[_Total Count]
)
doesn't work either.

lbendlin_0-1715980445700.png

Rank = RANKX(allselected('Table'),calculate(sum('Table'[Total Count])),,ASC)

Show = if([Rank]>2 || [Rank]=2 && minx(ALLSELECTED('Table'),[Total Count])>=50,1,0)

Thank you! That works great!

 

If the total count is a range, would it be this?

 

Show = if([Rank] > 2 || [Rank] = 2 && minx(ALLSELECTED('Table'), [Total Count]) > 1) && minx(ALLSELECTED('Table'), [Total Count]) <= 10, 1, 0) 

 

Thank you again

Sure, but why?  What if the minx is 1 ?

If 0 has be marked 0 and the range is between 1 and 10. It's a weird ask. Thanks!

then you must use >=1 , not >1

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon & SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.