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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Week Number by Fiscal Year

Hi,

 

I'm trying to create a calculated colunm that groups dates into one of three values.

 

Current Week - all dates that are in this month

Previous Week- all dates in previous month

Historic - all dates in the past that do not meet the criteria above.

 

Is this even possible? if so how would i go about writing this Dax?

1 ACCEPTED SOLUTION

@Anonymous 

 

You may simply use DATEDIFF.

DATEDIFF ( 'Table'[Date], TODAY (), WEEK )

 

Community Support Team _ Sam Zha
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

3 REPLIES 3
az38
Community Champion
Community Champion

@Anonymous 

are you sure the topic is correct?

you have created the same here https://community.powerbi.com/t5/Desktop/Dax-for-Current-Month-amp-Previous-Month/m-p/871991#M418209

do not hesitate to give a kudo to useful posts and mark solutions as solution


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

Hi @az38,

 

Thanks for responding to this and my earlier post. 

 

I'm pretty much trying to do the same but based on weeknumber instead Month.

@Anonymous 

 

You may simply use DATEDIFF.

DATEDIFF ( 'Table'[Date], TODAY (), WEEK )

 

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.