The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.
Forum Discussion
HHoensheid
OneStream Employee
2 years agoIf Statements in Books
I have a requirement for a book to produce different views (i.e. Periodic, QTD, YTD) based on the WFTime. The periodic report should always appear no matter the WFTime, however the QTD Version will only appear in certain months. I cannot get the "if" statement shown below to trigger.
I have an item to change a dashboard parameter present in the CV as well.
Is my syntax incorrec on the "If" statement?
Any help would be appreciated!
2 Replies
- Noemi
OneStream Employee
Hi, could you try to use this if statement (it worked for me)
(|WFTime| Contains M2) or (|WFTime| Contains M3) or (|WFTime| Contains M5) or (|WFTime| Contains M6) or (|WFTime| Contains M8) or (|WFTime| Contains M9) or (|WFTime| Contains M11) or (|WFTime| Contains M12)
I was also not using a loop definition for my dashboard parameter (as I could define it directly in the change parameter item, as you did).
Please let me know if that works for you.
- HHoensheid
OneStream Employee
Yes that worked!
It seems that there is no need to include "If" in the syntax for the If statement. I did not know each argument for the If statement had to be in parantheses. I'll remember this moving forward. Thank you!
Related Content
- 2 years ago
- 3 years ago