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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Saniat
Helper V
Helper V

Hide bar graph if Measure total is low

Hi,

I am working on a HR Dashboard and one of my requirement is not to show breakdown of workforce when we are analysing low number of population.

For example: In the below example I am analysing 19.5 FTEs, but I would like to add a threshold that if my total FTE goes below 10, I will hide the entire Bar Graph.

It it possible ?


Saniat_0-1675344162300.png


Thanks for the help.

3 REPLIES 3
ppm1
Solution Sage
Solution Sage

You can't really dynamically hide the visual, but you can make any value below 10 return blank. This assumes you've create a measure called Sum of FTE (not just dragged the FTE colulmn into the visual).

 

// will hide any bar <10

NewMeasure = var FTE = [Sum of FTE]

return IF(FTE>=10, FTE)

 

// will hide all bars if overall total <10

NewMeasure = var FTE = [Sum of FTE]

var overallFTE = CALCULATE([Sum of FTE], REMOVEFILTERS(Table[Function]))

return IF(overallFTE>=10, FTE)

 

Pat

Microsoft Employee

Hi @ppm1 

Thanks for the hint.

It works for the case where I have a fixed dimension in the Y-axis e.g. Function.

FTE_Privacy =
var FTE = SUM('1'[FTE])
var overallFTE = CALCULATE(SUM('1'[FTE]), REMOVEFILTERS('1'[Function]))
return IF(overallFTE > 20, FTE, BLANK())



But I am not sure how do I make it work when I am using Field Parameter to decide my Y-axis ?

Thanks in advance !

Saniat_2-1675347752699.png

 

 

Try putting ALLSELECTED() in place of REMOVEFILTERS('1'[Function]))

 

Pat

 

Microsoft Employee

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.