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
Katerina_SL
Helper II
Helper II

filter data with 0 numbers

Hello Everyone! 

 

I would like to ask help.

I've created bar chart in Power BI where on axes X is dates (hierarchy), on Y - number of options per day. 

Also I have filter dates.

 

I have problem when I would like to see on bar chart also days where we had no options. For it I wrote function: if (isblank(distinctcount(option_id)), 0, distinctcount(option_id)). After this I can see all days, even when we had 0 options but I can't filter now. For example, when I choose April 2023, on bar chart all days except April 2023 will be with 0, but you still see this graph and I would like to see only April 2023 on graph. 

This problem I have when I'm using filter between. When I'm using hierarchy in filter too, everything is okay. But I would like to use Between and have posibility to choose exact week. 

 

Thank you very much for advises,

Ekaterina

1 REPLY 1
Ritaf1983
Super User
Super User

Hi @Katerina_SL .

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

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.

Top Solution Authors