Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Adding the week data in the Date Slicer

Hey Guys,

 

Is there a way to add the week into the hierarchy slicer, 

As of now, i have the hierarchy as Year / Quarter / Month /Date

i wanted Week between Month & date , Like ->  Year / Quarter / Month / Week / Date

 

Please Suggest

  • Anonymous ,

     

    You need to create a week number column using dax function weeknum() and then build a custom hierarchy using the date column and the week number column. You can refer to tutorial below about how to build custom hierarchy column in power bi:

    https://www.youtube.com/watch?v=WWvVeYU0Dvw

     

    Community Support Team _ Jimmy Tao

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

4 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Did you try to use WEEKNUM?

     

    Week = WEEKNUM(Your_Table[Date], 2)

     

    Add in the hierarchy Year, Quarter, Month, Week, Day

     

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

    You could create individual columns for Year, Quarter, Month, Week and Day using YEAR, QUARTER, MONTH, WEEKNUM and DAY and build your own hierarchy.

  • v-yuta-msft's avatar
    v-yuta-msft
    Icon for Community Support rankCommunity Support

    Anonymous ,

     

    You need to create a week number column using dax function weeknum() and then build a custom hierarchy using the date column and the week number column. You can refer to tutorial below about how to build custom hierarchy column in power bi:

    https://www.youtube.com/watch?v=WWvVeYU0Dvw

     

    Community Support Team _ Jimmy Tao

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