Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problem with bottom function

Hi,

I have a pivot table with 3 dimensions, Month, week and day, and one expression X.

I use the bottom function to display the bottom value in the totals

= if(dimensionality()<3, bottom(Sum(X)), Sum(X))

It work´s fine, and the totals display the bottom value of the rows that are below.

My problem is when I colapse the dimension, the total is transformed to a null value like "-"

Example:

error loading image

When i Collapse the Week 40 the total is converted to a "-"

error loading image

Can anybody help me?, Is it possible to show the bottom value when I collapse the dimension?

1 Solution

Accepted Solutions
Not applicable
Author

Try this:

if

(dimensionality()<2, bottom(Sum(X)), Sum(X))

View solution in original post

6 Replies
Not applicable
Author

Nobody can help me?

Not applicable
Author

that value must be given at 40 weeks?
Not applicable
Author

changes in the INSTRUCTIONS:
</div><div></div><div></div><div>if(secondarydimensionality()<3, bottom(Sum(X)), Sum(X))</div><div></div><div>
Big Smile
Not applicable
Author

Try this:

if

(dimensionality()<2, bottom(Sum(X)), Sum(X))

Not applicable
Author

Ok, thanks, it work´s fine.

Solved

Not applicable
Author

Hola Juan Carlos

La fórmula if(dimensionality()<2, bottom(Sum(X)), Sum(X)) funciona pero necesito tener los 3 tolales, por mes, por semana y por día.

En tu imagen solo hay totales por mes y por semana.

Además cuando contraigo las filas desaparece el número y sigue saliendo el símbolo nulo -.

La fórmula funciona mientras está desplegado pero cuando la contraigo no, sale el -

Además como se ve en tu imagen en el total del mes aún desplegado sale el -, debería repetir el valor en cada total de forma que si contraigo el mes pueda ver el último valor de ese mes y así sucesívamente si contraigo la semana, etc...

Gracias por tu ayuda