Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Exclude holidays in week

Hi,

 

I HAVE DIMDATE TABLE WITH CALENDARDATE,ISHOLIDAY,WEEKNUMER COLUMNS.

 

what i want is exclude weeks which has holidays.

 

example: in Jan-2020 we have 5 weeks so consider only 2,3,4 & 5 weeks as 1st week has holiday which is 1 jan-2020.

  • So normally you would do something like have a Holidays table that lists your holidies and then you would use WEEKNUM to create a column in that table. Then you could use something like EXCEPT or standard FILTER depending on your needs.

     

    If that is not specific enough, Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

    The most important parts are:
    1. Sample data as text, use the table tool in the editing bar
    2. Expected output from sample data
    3. Explanation in words of how to get from 1. to 2.

1 Reply

  • Greg_Deckler's avatar
    Greg_Deckler
    Icon for Community Champion rankCommunity Champion

    So normally you would do something like have a Holidays table that lists your holidies and then you would use WEEKNUM to create a column in that table. Then you could use something like EXCEPT or standard FILTER depending on your needs.

     

    If that is not specific enough, Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

    The most important parts are:
    1. Sample data as text, use the table tool in the editing bar
    2. Expected output from sample data
    3. Explanation in words of how to get from 1. to 2.