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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Sameer_s27
Regular Visitor

How to display all four weeks for each month in matrix visual in power bi?

i need to display week 1 to week 4 for each month of my calendar table. it should display like week 1 , week 2 , week 3 , week 4 for jan then again same for feb month.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Sameer_s27 ,
Here some steps that I want to share, you can check them if they suitable for your requirement.
Here is my test data:

vheqmsft_0-1716429067115.png

Create a column

Weekinmonth = 
VAR a = 1 + WEEKNUM ( 'Table'[Date] )-WEEKNUM( STARTOFMONTH ('Table'[Date]))
RETURN
SWITCH(
    TRUE(),
    a = 1, "Week1",
    a = 2, "Week2",
    a = 3, "Week3",
    a = 4, "Week4",
    a = 5, "Week5"
)

Final output

vheqmsft_1-1716429105188.png

 

Best regards,
Albert He

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

2 REPLIES 2
Anonymous
Not applicable

Hi @Sameer_s27 ,
Here some steps that I want to share, you can check them if they suitable for your requirement.
Here is my test data:

vheqmsft_0-1716429067115.png

Create a column

Weekinmonth = 
VAR a = 1 + WEEKNUM ( 'Table'[Date] )-WEEKNUM( STARTOFMONTH ('Table'[Date]))
RETURN
SWITCH(
    TRUE(),
    a = 1, "Week1",
    a = 2, "Week2",
    a = 3, "Week3",
    a = 4, "Week4",
    a = 5, "Week5"
)

Final output

vheqmsft_1-1716429105188.png

 

Best regards,
Albert He

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

Thank you for the help !

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors