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: 
Not applicable

Displaying values in a straight table on certain selection

Hi,

I have a requirement wherein I have to display the metric names,status1,status2 and sales in a chart wherein status1 and status2 must appear as images.I have acheived this,but the issue is that the chart is not providing the summarised view of the data.i.e.,

In my application i have four Metrics A,B,C,D and thus i would want to see only four rows in my chart,one for each metric name, with status1 and status2 displaying null value when no selection is being made on year and month, and once the selection is made on the year and month i would want the chart to display the values for Status1 and status2.Can anyone please help acheive this

I have also attached the sample application

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Write the calculated expression as

=if(isnull(GetCurrentSelections()),Null(),

if(Status='GREEN','qmem://<bundled>/BuiltIn/led_g.png',

if(Status='RED','qmem://<bundled>/BuiltIn/led_r.png',

if(Status='YELLOW','qmem://<bundled>/BuiltIn/led_y.png'))))

     And remove the Enable condition.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

4 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

    Have a look at the application.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
sasikanth
Master
Master

HI anu

Kaushik Solanki`s example is perfect ,

if you want to enable the status,status2 based on only My_date field.. Then use

enable condition as GetSelectedCount(My_data)>0.

Not applicable
Author

Hi Kaushik,

In the application put up, you have made the columns status1 and status2 to appear only when month is selected.But I would want to display the columns status1 and status2 even when the month is not selected.But it must be having Null Values (i.e., '-') when no values are selected.Can you please let me know how this could be acheived.

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Write the calculated expression as

=if(isnull(GetCurrentSelections()),Null(),

if(Status='GREEN','qmem://<bundled>/BuiltIn/led_g.png',

if(Status='RED','qmem://<bundled>/BuiltIn/led_r.png',

if(Status='YELLOW','qmem://<bundled>/BuiltIn/led_y.png'))))

     And remove the Enable condition.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!