Qlik Community

QlikView Creating Analytics

Discussion Board for collaboration related to Creating Analytics for QlikView.

Not applicable

[Page] and [Pages] in expression

Hi,

into my report I need to insert information about page number and total number of pages. As the report is looped by dimension, the page and pages information needs to be put as an expression. Any idea what the expression should be like?

Regards,

Przemek

1 Solution

Accepted Solutions
joaquinlr
Valued Contributor II

Re: [Page] and [Pages] in expression

Hello Przemysław Wojda

See the attached image ..

sample.bmp

1) Create a new variable, in this example vPage

2) Assign the expression to this variable

3) Use the var on the repport settings dialog

My goal was write the expression marked on green, the explantion of the expression is.

a) FieldValue(Idioma, 313) for the text 'Page' on the user language

b) chr(38) & chr(91) & 'Page' & chr(93) to add &[Page] function

c) FieldValue(Idioma, 314) for the text 'of' on the user language

d) chr(38) & chr(91) & 'Pages' & chr(93)  to add &[Pages] function

Your goal if complete the vPage with your own expression. Good luck

3 Replies

Re: [Page] and [Pages] in expression

If you want to reset the page count on every change of dimension value, then I think you're out of luck. If all you want is to add the page number and the total number of pages then you can use the standard buttons (first two on the left) on the Header/Footer tab of the Report Settings screen.


talk is cheap, supply exceeds demand
Not applicable

Re: [Page] and [Pages] in expression

Thank you, Gysbert. Any idea how to put the count into expression?

joaquinlr
Valued Contributor II

Re: [Page] and [Pages] in expression

Hello Przemysław Wojda

See the attached image ..

sample.bmp

1) Create a new variable, in this example vPage

2) Assign the expression to this variable

3) Use the var on the repport settings dialog

My goal was write the expression marked on green, the explantion of the expression is.

a) FieldValue(Idioma, 313) for the text 'Page' on the user language

b) chr(38) & chr(91) & 'Page' & chr(93) to add &[Page] function

c) FieldValue(Idioma, 314) for the text 'of' on the user language

d) chr(38) & chr(91) & 'Pages' & chr(93)  to add &[Pages] function

Your goal if complete the vPage with your own expression. Good luck

Community Browser