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

Display message per selection

Hey guys,

From the table below the goal is to have sales every month for all the shops shown on the right. But if for example when selecting a shop in this case Hilltop 58 and there are months without any sales as in the case  of Mar, Jun, Oct and Dec, then a message should be displayed saying " There were no sales in the months of Mar, Jun, Oct and Dec for Hilltop 58".

Please any help on how to achieve these will be great.

Month              Sales

Jan                  € 2,500,25

Feb                  € 1,252,00

Mar

Apr                    € 500.25

May                  € 3,500,95

Jun

Jul                    € 4,652,85

Aug                    € 10,458,87                                          SHOPS

Sep                    € 15,896,45                                        Hilltop 58

Oct                                                                              T- Square 45

Nov                    € 25,875,65                                        Spring bell 38

Dec                                                                              Down beach 10

                                                                                    Coastal city 5

Thanks in advance.

1 Solution

Accepted Solutions
Digvijay_Singh

If yes, then - apply this condition in the show condition in layout tab of textbox -

len(Concat(distinct {1<Start_Month=E({$<Start_Month={"=sum(DISTINCT PaidWithTax)<>0"}>}Start_Month)>}Start_Month,',',Num(Start_Month)))>0

This is same concat statement we used in the main expression, we just picked that part and checking the length if it is greater than zero then only show the textbox.

View solution in original post

161 Replies
sushil353
Master II
Master II

Hi,

You can try below expression in text box.

='There were no sales in the months of '&Concat({<Sales={''}>}Month,',')&GetFieldSelections([SHOPS])

HTH

Sushil

Anil_Babu_Samineni

Simon,

If possible, Can you please share me the Application?

So that we can apply directly on your App only..

- Anil

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
varshavig12
Specialist
Specialist

Expression in Straight table:

if(sum(Sales)=null(),

'There were no sales in the months for '&GetFieldSelections(Shops),

sum(Sale_Amount))

varshavig12
Specialist
Specialist

You want this straight table or text box ?

Not applicable
Author

Text box please

Anil_Babu_Samineni

Varsha,

Share me your qvw with Selection popup

- Anil

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
varshavig12
Specialist
Specialist

Hi Anil,

I dont have any sample for this.

Ask Simon.

Not applicable
Author

The app contain sensitive info from clients. But from the sample I posted could you help?

Not applicable
Author

Varsha

Thanks for the suggestion I will try these and see if it works