Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikvw2019
Contributor
Contributor

Block Chart , multiple expressions

Hello friends,

 

I am new to Qlikview. I have a block chart below. The Chart is sorted as per column ROOMSIZE , once the level is changed , I need the chart to show the sorting as per cubicle size .Attached is the qlikview file. Below is the screenshot.

Data

BLDG->ROOM->CUBICLE

BLDGROOMROOMSIZECUBICLECUBICLE_SIZE
BLDG1ROOM1500CUB130
BLDG1ROOM1300CUB240
BLDG1ROOM3400CUB350
BLDG2ROOM4600CUB660
BLDG2ROOM5800CUB910
BLDG3ROOM6100CUB1020

 

Once the Block chart loads , the data is sorted based on the column ROOMSIZE . However when we select the room , the data is not displayed sorted as per CUBICLE_SIZE , its still sorted as per the ROOMSIZE.

 

clipboard_image_0.png

On Selecting the bld1, it displays 2 rooms based on the roomsize , 

 

clipboard_image_2.png

But now on selecting ROOM1 , below screenshot , CUB1 &CUB2 are sorted based on the ROOMSIZE ,  How can i have them  sorted based on the cubicle_size

 

clipboard_image_3.png

1 Solution

Accepted Solutions
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

There you go,

Use one expression will do:

if(GetSelectedCount(BLDG)>=1 and GetSelectedCount(ROOM)>=1,MAX(CUBICLE_SIZE),MAX(ROOMSIZE))

clipboard_image_0.png

Refer qvw attached as reference.

Thanks and regards,

Arthur Fong

 

View solution in original post

3 Replies
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

There you go,

Use one expression will do:

if(GetSelectedCount(BLDG)>=1 and GetSelectedCount(ROOM)>=1,MAX(CUBICLE_SIZE),MAX(ROOMSIZE))

clipboard_image_0.png

Refer qvw attached as reference.

Thanks and regards,

Arthur Fong

 

qlikvw2019
Contributor
Contributor
Author

Thankyou. This worked as a Charm!

qlikvw2019
Contributor
Contributor
Author

Hi,

 

I have another issue on the same chart , could you check this post?

 

https://community.qlik.com/t5/New-to-QlikView/Caption-on-Block-Chart/m-p/1638237#M382359

 

Thanks