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!
Hello,
Can someone help me with this formula? What I want done is that anything on my "Week No." column that has 1-4, in the new column "Months", it comes up as "Jan", 5-8 is "Feb", and so on. But I'm getting an error on the dash after 2022. It works fine in Alteryx but not sure if the formula is different in Power BI.
DateTimeFormat(DateTimeAdd(DateTimeAdd('2022-01-01',-ToNumber(DateTimeFormat('2022-01-01','%w')),'Days'),7*[Week No.],'Days'),'%b')
Solved! Go to Solution.
I think the formula would be:
Date.ToText(#date(2022, 1, 1) + [Week No.] * #duration(7, 0, 0, 0), [Format = "MMM", Culture = "en-us"])
I think the formula would be:
Date.ToText(#date(2022, 1, 1) + [Week No.] * #duration(7, 0, 0, 0), [Format = "MMM", Culture = "en-us"])
That worked, thank you.
Hi,
i think you have to use " instead of '.
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 |
|---|---|
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 15 | |
| 11 | |
| 11 | |
| 8 | |
| 6 |