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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply

Count Current Week dates

Hi all,  

I need to count Current week  [ 10-April-2022 to 16-04-2022 ] number of dates 
See sample below and data set link also attached 

 

ajisharavind_99_0-1649602797663.png

 

 

https://docs.google.com/spreadsheets/d/1kQ2Jfm_wzLyHfMfS7Qul9wpCZB6pe7HO/edit?usp=sharing&ouid=11061... 

1 ACCEPTED SOLUTION
tackytechtom
Super User
Super User

Hi @ajisharavind_99 ,

 

Here the result:

tomfox_0-1649603725389.png

 

 

And here the DAX code:

CountPlan5CurrentWeek = 
CALCULATE ( COUNT ( Table3[Plan 5] ), WEEKNUM ( Table3[Plan 5] ) = WEEKNUM ( TODAY() ) )
CountPlan35CurrentWeek = 
CALCULATE ( COUNT ( Table3[Plan 35] ), WEEKNUM ( Table3[Plan 35] ) = WEEKNUM ( TODAY() ) )

 

Let me know if this solves your issue 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

View solution in original post

2 REPLIES 2

@tackytechtom  Thanks 

tackytechtom
Super User
Super User

Hi @ajisharavind_99 ,

 

Here the result:

tomfox_0-1649603725389.png

 

 

And here the DAX code:

CountPlan5CurrentWeek = 
CALCULATE ( COUNT ( Table3[Plan 5] ), WEEKNUM ( Table3[Plan 5] ) = WEEKNUM ( TODAY() ) )
CountPlan35CurrentWeek = 
CALCULATE ( COUNT ( Table3[Plan 35] ), WEEKNUM ( Table3[Plan 35] ) = WEEKNUM ( TODAY() ) )

 

Let me know if this solves your issue 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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