Forum Discussion
- Thomas_BennettNew Contributor III
here is an example of one of my working books:
Parameter:
Loop:
Change param:
If statement, It was shorter and more intuitive using Loop1displayvariable :
and the book object, note I dont have any required input parameters. This might be your issue as I think this overrides selections within the loop:
Finally the Tabs of the output report as proof :D. This book was quite complex as its three nested loops for currency, column set and V#:
- Thomas_BennettNew Contributor III
The syntax of book functions is quite confusing. Id check that. Otherwise You can technically run your parameter in a loop, however, nest an if statement within the loop and only allow the selection you want in your scaling parameter to pass. Ive done this on one of my books (out of laziness adapting it from another rather than building a new book!) And it gets round having to set up unique CVs without the Parameters.
Good luck!
- GayathriNew Contributor III
Thanks for your response, Thomas.
I have tried it, still it is prompting for selection.
Thanks,
Gayathri.N
- Thomas_BennettNew Contributor III
Ive always wrapped the loop variables in square brackets try [|Loop1Variable|] = [In Millions]
- Thomas_BennettNew Contributor III
One thing to check is that Loop1variable is returning "In Millions". I.e. you have Loop1variable and Loop1displayvariable which relate to the two rows in the parameter. Easy to get caught out by this on a delimited list, I did!
- GayathriNew Contributor III
Thanks Thomas, could you please provide the screenshot of if statement in the report book if possible.
- GayathriNew Contributor III
Thanks for sharing it, Thomas.
Related Content
- 11 months ago
- 2 months ago
- 7 months ago