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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
STEPH0018
Helper II
Helper II

remove not working days dates from bar graph

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

 

STEPH0018_0-1654810143213.png

 

Thaks.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

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

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

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

STEPH0018
Helper II
Helper II

in my date base I don't have weekends or holidays.

music43
Advocate II
Advocate II

Hi

Could you add a working day (Yes/No) field to your date table and filter out Working Day = No at the visual level?

@music43's answer is the way in my opion. 

STEPH0018
Helper II
Helper II


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

vapid128_0-1654881628651.png

vapid128_1-1654881689177.png

 

vapid128
Solution Specialist
Solution Specialist

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.