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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
JorgeMartinez92
Frequent Visitor

Filter out text on column char X-Axis if the sum of its contents is < = 0

Hi all, 

 

I want to know if it's possible to filter out from my graph the months which do not have numerical values in the below table:

Employee NameRecorded HoursTarget HoursMissing HoursMonth
Jane Doe011AUG
Joe Doe330APR
Joe Doe22220JUN
Joe Doe011MAY

 

This is what is currently being charted:

Example Chart.png

 

August has a total amount of 1 missing hours, so it is charted as well as May. I, however, don't want to see APR and JUN on the X-axis as there is no reason to display months without missing hours.

 

I was trying to calculate the sum of missing hours per month from my table and then create a measure which would filter said months if their missing hours amount is less or equal to 0, and then use said measure on the x-axis of my chart. But several attempts have not taken me any closer.

 

Can someone point me in the right direction?

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @JorgeMartinez92 ,

 

I suggest you try to create a measure to calcualte sum of missing hours.

Sum of Missing Hours = CALCULATE(SUM('Table'[Missing Hours]))+0

Then set this measure to show items when value is not 0 in visual level filter. This will dynamiclly remove the month with 0 missing hours.

vrzhoumsft_0-1692860145602.png

 

 

 

View solution in original post

4 REPLIES 4
chonchar
Helper V
Helper V

chonchar_0-1692725417518.png

 

I got it to work

chonchar
Helper V
Helper V

Select View > Filters > Filters on this visual and then you can toggle on and off the months with no values. The problem with that is that it hard codes that into PBI, so if there were new data to populate in april or june, you'd have to toggle them back on to see the data. 

 

Hope this helps. 

Hi Chonchar, 

 

I have tried this one and does not work for me. Perchance you tried this option with the table I provided above?

Anonymous
Not applicable

Hi @JorgeMartinez92 ,

 

I suggest you try to create a measure to calcualte sum of missing hours.

Sum of Missing Hours = CALCULATE(SUM('Table'[Missing Hours]))+0

Then set this measure to show items when value is not 0 in visual level filter. This will dynamiclly remove the month with 0 missing hours.

vrzhoumsft_0-1692860145602.png

 

 

 

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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