Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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 Name | Recorded Hours | Target Hours | Missing Hours | Month |
Jane Doe | 0 | 1 | 1 | AUG |
Joe Doe | 3 | 3 | 0 | APR |
Joe Doe | 22 | 22 | 0 | JUN |
Joe Doe | 0 | 1 | 1 | MAY |
This is what is currently being charted:
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?
Solved! Go to Solution.
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.
I got it to work
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?
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.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
61 | |
61 | |
55 | |
38 | |
27 |
User | Count |
---|---|
82 | |
61 | |
45 | |
41 | |
39 |