Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
From all the documentation I have seen, this DAX code should give me the ISO week number for today:
Week = WEEKNUM(Today(), 21)
But this is giving me an error, saying 21 is not the correct parameter type. When it gives me the available options, only 1 and 2 appear:
The documentation here seems to clearly state that 21 is a valid option for return_type:
https://learn.microsoft.com/en-us/dax/weeknum-function-dax
Does anyone know why it will not accept 21 as the parameter?
Solved! Go to Solution.
Hi @MAG_PRG ,
According to research, a similar issue has been reported internally.
I will update here once I get any information.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @MAG_PRG ,
According to research, a similar issue has been reported internally.
I will update here once I get any information.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I have the same issue with my existing WEEKNUM function!
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 57 | |
| 52 | |
| 40 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 112 | |
| 106 | |
| 39 | |
| 34 | |
| 26 |