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
ovonel
Post Prodigy
Post Prodigy

wrong week returned?

We are in week 40, in either system 1 and 2. But pbix returns 41, why??

ovonel_0-1633433709305.png

 

3 REPLIES 3
ovonel
Post Prodigy
Post Prodigy

15 means, week begins on friday? (that is not what I want... week begins on monday).

 

As I have it my dimDate:

 

Date, Week

2020-12-31 53
2021-01-01 53
2021-01-02 53
2021-01-03 53
2021-01-04 1

****

2021-12-31 52
2022-01-01 52
2022-01-02 52
2022-01-03 1

 

(which return_type shall I use to match the above)

Hi @ovonel 

Use 21 as a return_type in your DAX.

 

Output:

VahidDM_0-1633483278447.png

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!!

 

VahidDM
Super User
Super User

Hi @ovonel 

https://docs.microsoft.com/en-us/dax/weeknum-function-dax#remarks

 

Try this:

 

Measure = WEEKNUM(TODAY(),15)
 
Output:
VahidDM_0-1633435584809.png

 

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.