cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Microsoft
Microsoft

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
Microsoft
Microsoft

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

Helpful resources

Announcements
secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

Wave Release 2

Check out the updates in Power BI.

Overview of Power BI 2020 release wave 2!

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors