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 dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi guys
I would like to know if it is possible to remove blank spaces, from dates that are not working days and I don't have in my base, from a bar graph. I didn't want to put the x axis as categorical because I have many dates to show. Below is an example of what it looks like for a short viewing interval
Thaks.
Solved! Go to Solution.
Hi @STEPH0018 ,
You can create a column.
Weekday=var _weekend=weekday(table[date],2)
return
if(_weekend>=6,blank(),1)
Then filter the column.
Click the column is not blank.
I have found a post about holidays. Please refer to it to see if it helps you.
Calculate Working Days in Power BI
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @STEPH0018 ,
You can create a column.
Weekday=var _weekend=weekday(table[date],2)
return
if(_weekend>=6,blank(),1)
Then filter the column.
Click the column is not blank.
I have found a post about holidays. Please refer to it to see if it helps you.
Calculate Working Days in Power BI
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
in my date base I don't have weekends or holidays.
Hi
Could you add a working day (Yes/No) field to your date table and filter out Working Day = No at the visual level?
Sorry, I do not understand. this resolution doesn't work for me as I don't have zero values and my axis needs to be continuous
x axis is a categorical is a fillter.
x axis is not a selected fillter. That is how allselected function works.
In graph filter on your right side, fillter whatever values in graph not equal 0
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
11 | |
11 | |
10 | |
6 |