Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
paweln
Contributor III
Contributor III

Selection messes my sorting order

Hi All,

I have a KPI and a line chart.

paweln_0-1648633996928.png

X axis of line chart is [Counting Month]. KPI is responding to selections but I need line chart to be fixed so my measure on line chart is:

1-Count({1<Group={'A'}, Defect={'Yes'}>}Product)/Count({1<Group={'A'}>}Product)

If I choose [Counting Month] value my KPI works fine but selected month goes at the end of line chart making it meaningless.

paweln_1-1648634400777.png

 

is it that issue?

https://support.qlik.com/articles/000087436

How to solve it? Alternate state?

 

Labels (5)
6 Replies
Chanty4u
MVP
MVP

use  like this in your line chat expression 

what ever the dimensions you have include like below.

Sum({<year=,month=>} Sales) 

paweln
Contributor III
Contributor III
Author

Hi Chanty4u, it desn't work. You suggest to do it like this:

1-Count({1<Group={'A'}, Defect={'Yes'}, [Counting Month]=>}Product)/Count({1<Group={'A'}, [Counting Month]=>}Product)

 

but there is alreay "1" modifier that should work the same way as [Counting Month]=

 

Chanty4u
MVP
MVP

can you try this?

 

1-Count({1<Group={'A'}, Defect={'Yes'}, [Counting Month]=e( [Counting Month])>}Product)/Count({1<Group={'A'}, [Counting Month]=e( [Counting Month])>}Product)

Kashyap_R
Partner - Specialist
Partner - Specialist

Hi

Can u attach a sample qvf where you are facing this issue. so that anyone can try the same scenario.

Meanwhile

try removing the sorting for other measure keep only month dimension and remove sorting for other

kashyap_0-1648705528348.png

Hope this helps 

Thanks  and Regards

Kashyap.R

 

Thanks and Regards
Kashyap.R
paweln
Contributor III
Contributor III
Author

Hi,

, that E() removes selected months from the chart. I don't want to touch dim (Counting Month).

, my sorting looks like this:

 

paweln_0-1648718212651.png

To upload the sample I would have to cut most of data model. I'll consider this. 

Kashyap_R
Partner - Specialist
Partner - Specialist

Hi

Can u please attach a sample qvf it will be easy to try and get the solution asap.

Thanks and Regards
Kashyap.R