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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
sewaktamang
Frequent Visitor

7 days for each week

not.PNGCan anyone help me? I am using weeknum(date) function and it is giving me right answer as rule of Microsoft. But How can i show Week 1 for 7 days and so on.

Like from Jan 1 to Jan 7 2016=Week 1
Jan 8 to Jan 14 2016= week 2
.
.
.
Jan 1 - Jan 7 2017= Week 1
Jan 8 to Jan 14 2017= week 2

and so on

1 ACCEPTED SOLUTION
Phil_Seamark
Employee
Employee

Hi @sewaktamang

 

This calculated column gets pretty close

 

Column = INT((INT('Table'[Date] - DATE(YEAR([Date]),1,1)))/7)

image.png


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

1 REPLY 1
Phil_Seamark
Employee
Employee

Hi @sewaktamang

 

This calculated column gets pretty close

 

Column = INT((INT('Table'[Date] - DATE(YEAR([Date]),1,1)))/7)

image.png


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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