Forum Discussion
MrMarshall
7 years agoHelper II
Creating a fiscal week column
Trying to create a Fiscal week column from WeekNum in my Calendar table. I got the WeekNum done already. Fiscal year starting on Week 40, so I am trying to create something like the one below: I w...
- 7 years ago
MrMarshall - Not sure what went wrong, take a look at this PBIX file attached. Table3.
It looks like you missed the if statement.
Greg_Deckler
7 years agoCommunity Champion
MrMarshall - Not sure what went wrong, take a look at this PBIX file attached. Table3.
It looks like you missed the if statement.
MrMarshall
7 years agoHelper II
That worked Greg!
There must be some culture error on my Power BI.
I changed:
VAR __fw = [WeekNum] - 40 + 1 RETURN IF( __fw <= 0,52 + __fw , __fw )
To:
VAR __fw = [WeekNum] - 40 + 1 RETURN IF( __fw <= 0 , 52 + __fw , __fw )
and it works after the change of spaces :)
Thanks!
- Greg_Deckler7 years agoCommunity Champion
Weird! Glad you got it though!!
When in doubt, add blank lines and recompile...
- dhall0014 years agoFrequent Visitor
Is it because of the 0,52? I am assuming that one of your computers is recognizing the comma as a decimal and it may be causing the issue.