11-21-2023 03:19 PM
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!
11-23-2023 05:32 AM - edited 11-23-2023 05:40 AM
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.
11-27-2023 09:49 AM
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!