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

Qlik sense Only One Selected Value

Hi to all , 

I need to put in filter   Year_Month one selected value but not  from top or bottom of the  list 

I manage to sort list to be like this : 

Ilya_K_0-1644320906691.png

As far as I understood  one selected value always take first value ,

But when I turn one selected value option  the value in the field becomes Jan 2020 instead Nov 2021 as expected 

Ilya_K_1-1644321116265.png

 

Any advice?

 

 

Labels (1)
1 Solution

Accepted Solutions
Andrei_Cusnir
Specialist
Specialist

Hello,

 

This is working as designed! According to the official "Always one selected value" [1], documentation it is stated that "The Always one selected value defaults to the first entry in the field", as you have also correctly noticed. If you choose a different value and then refresh the app, or if you close the app and re-open it, you will notice that the default value always moves back to the first value in the dataset.

 

If you would like to have a different default selected value, then you can apply the selection on the actions section of your sheet. For example:

 

1. I have the following dataset:

 IMAGE

 

2. I have set the "Always one selected value" and the result is:

IMAGE

 

As you can see the first date is selected and if I re-open the app or refresh the page, it will always select this value no matter which different value I choose. 

 

3. To have it select a different value, you can edit the sheet

4. And you will get Actions as the last option.

5. Under Actions, you should click on "Add action"

6. Choose a name such as "Select Value"

7. For action choose "Select values in a field"

8. For Field select "Year_Month"

9. For Value add the expression with the value that you want to be the default one: ='Jul 2015'

10. Now whenever I open this sheet or I refresh the app or re-open it, I have the following outcome:

IMAGE

 

As you can see the Jul 2015 is selected instead of the Apr 2015.

 

I hope that this information was helpful. In case I have misunderstood the use case scenario, please elaborate in details by providing additional information. However, if it has helped you resolve the issue, please mark it as accepted solution to give further visibility to other community members. 
 

 

---

[1] https://help.qlik.com/en-US/sense/November2021/Subsystems/Hub/Content/Sense_Hub/DataSource/select-si...

Help users find answers! Don't forget to mark a solution that worked for you! 🙂

View solution in original post

1 Reply
Andrei_Cusnir
Specialist
Specialist

Hello,

 

This is working as designed! According to the official "Always one selected value" [1], documentation it is stated that "The Always one selected value defaults to the first entry in the field", as you have also correctly noticed. If you choose a different value and then refresh the app, or if you close the app and re-open it, you will notice that the default value always moves back to the first value in the dataset.

 

If you would like to have a different default selected value, then you can apply the selection on the actions section of your sheet. For example:

 

1. I have the following dataset:

 IMAGE

 

2. I have set the "Always one selected value" and the result is:

IMAGE

 

As you can see the first date is selected and if I re-open the app or refresh the page, it will always select this value no matter which different value I choose. 

 

3. To have it select a different value, you can edit the sheet

4. And you will get Actions as the last option.

5. Under Actions, you should click on "Add action"

6. Choose a name such as "Select Value"

7. For action choose "Select values in a field"

8. For Field select "Year_Month"

9. For Value add the expression with the value that you want to be the default one: ='Jul 2015'

10. Now whenever I open this sheet or I refresh the app or re-open it, I have the following outcome:

IMAGE

 

As you can see the Jul 2015 is selected instead of the Apr 2015.

 

I hope that this information was helpful. In case I have misunderstood the use case scenario, please elaborate in details by providing additional information. However, if it has helped you resolve the issue, please mark it as accepted solution to give further visibility to other community members. 
 

 

---

[1] https://help.qlik.com/en-US/sense/November2021/Subsystems/Hub/Content/Sense_Hub/DataSource/select-si...

Help users find answers! Don't forget to mark a solution that worked for you! 🙂