Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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.
Solved! Go to Solution.
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:
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
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
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:
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
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 !
User | Count |
---|---|
97 | |
76 | |
76 | |
47 | |
26 |