cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SamOPEN
Resolver I
Resolver I

Generate a calendar without week-ends

Hey community,


Needed that, it's not complicated, just sharing if someone needs it :

a_calendrier = 
    VAR _mon_calendrier_ = CALENDAR(MIN(t_journee[jou_date]);MAX(t_journee[jou_date]))

RETURN
    FILTER(
        _mon_calendrier_
        ; WEEKDAY([Date];2) <> 6 && WEEKDAY([Date];2) <> 7
    )

 

1 ACCEPTED SOLUTION
dax
Community Support
Community Support

Hi @SamOPEN 

Thank you for your sharing! Please kindly mark helpful replies as answers. By doing so, it will benefit all community members who are having this similar issue. Your contribution is highly appreciated.

Best Regards,
Zoe Zhi

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

1 REPLY 1
dax
Community Support
Community Support

Hi @SamOPEN 

Thank you for your sharing! Please kindly mark helpful replies as answers. By doing so, it will benefit all community members who are having this similar issue. Your contribution is highly appreciated.

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
August 2022 update 768x460.jpg

Check it Out!

Click here to learn more about the August 2022 updates!

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors