Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
dafnis14
Specialist
Specialist

Relative display in Pivot

Hi,

I Have created a pivot table with 4 dimensions.

The relative expression is :

sum( [# of Seats/Rooms])/Sum( TOTAL <[ServDay of week], RsvServiceDate > [# of Seats/Rooms])

when selecting a value for the first dimension, relative results work fine:

ex1.png

When all dimension values are displayed, the relative does not accumulate to 100%:

ex2.png

Any idea how i should fix this?

Thanks!

1 Solution

Accepted Solutions
avinashelite

Try like this

sum( [# of Seats/Rooms])/Sum( TOTAL <Location,[ServDay of week], RsvServiceDate > [# of Seats/Rooms])

View solution in original post

9 Replies
Chanty4u
MVP
MVP

will u able to share sample app/

or

  • Just un-tick relative for all expressions
  • Check the number format to be as per your requirement.
ahammadshafi
Creator
Creator

May be this will work


sum( <[Location]>[# of Seats/Rooms])/Sum( TOTAL <[ServDay of week], RsvServiceDate > [# of Seats/Rooms])


Ahammad Shafi

avinashelite

Try like this

sum( [# of Seats/Rooms])/Sum( TOTAL <Location,[ServDay of week], RsvServiceDate > [# of Seats/Rooms])

dafnis14
Specialist
Specialist
Author

Hi,

Thanks, but there seems to be a syntax issue....

dafnis14
Specialist
Specialist
Author

Hi,

I tried it, but it doesn't change the result...

Thanks!

dafnis14
Specialist
Specialist
Author

Hi,

It's a pivot table, so Relative option is not available...

Thanks!

ecolomer
Master II
Master II

Try this:

sum( <[Location]=>[# of Seats/Rooms])/Sum( TOTAL <[ServDay of week], RsvServiceDate > [# of Seats/Rooms])

dafnis14
Specialist
Specialist
Author

Sorry Avinash,

I picked the wrong field..

You were right..

Thanks!

avinashelite

Cool