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

Filter the Negative Values from a Calculated Expression

Hello!

I have a calculated expression  =sum(Qty)/Sum( Total<Material,FQr> Qty) ...How can I filter to show only the  negative values if  my calculated expression is less than the dimension field  "Target"....      If(sum(Qty)/Sum( Total<Material,FQr> Qty)  < Target)


Hope someone can help me on this.

Tks.

1 Solution

Accepted Solutions
MarcoWedel

If one of the other expressions is not null, the property "suppress missing" for the "% Share" expression will not supress the row. So one possibility could  be to add a condition to all of your expressions (see my previous example).

regards

Marco

View solution in original post

12 Replies
MarcoWedel

‌please post sample data/app.

thanks

regards

Marco

Anonymous
Not applicable
Author

Hi!  Marco,

Thank you for getting back to me quick...Anyway, pls. see my sample table below

Original table ...

 

   

MaterialC SplitN SplitShipments (Qty)Target (Qty)% Share
A-1245111,0551,055100.0%
A-124611523523100.0%
A-1247111,3251,325100.0%
A-12480.20.27201,5639.2%
A-12480.80.87,0956,25290.8%
A-12490.50.52,3003,80930.2%
A-12490.50.55,3183,80969.8%
A-1253114,0454,045100.0%
A-12541117,92517,925100.0%
A-12550.20.22,00080050.0%
A-12550.80.82,0003,20050.0%
A-12560.51720360100.0%
A-12570.50.5503756.7%
A-12570.50.570037593.3%
A-12580.30.330018050.0%
A-12580.70.730042050.0%v

   

 

   

Now, I want to create a new table where I need to filter to pick up the materials with red cells where % share is more than the [C Split] ...Thus, this is my desired table .  Once I got my desired output, I would then create a new table for % share with less than the [C split] (this time it's the yellow cells).

   

MaterialC SplitN SplitShipments (Qty)Target (Qty)% Share
A-12480.20.27201,5639.2%
A-12480.80.87,0956,25290.8%
A-12490.50.52,3003,80930.2%
A-12490.50.55,3183,80969.8%
A-12550.20.22,00080050.0%
A-12550.80.82,0003,20050.0%
A-12560.51720360100.0%
A-12570.50.5503756.7%
A-12570.50.570037593.3%

I hope I explain this better.

Tks.

sinanozdemir
Specialist III
Specialist III

Is this what you are looking for?

Capture.PNG

The first table's expression:

Capture2.PNG

The second table's expression:

Capture3.PNG

Sorry, I cannot attach an app. At work, the firewall is quite strong.

Anonymous
Not applicable
Author

Hi!  Sinan,

The formula worked but how did you suppress the null values?  I tried checking the suppress to null values under the dimension  and presentation tab to no avail.

Tks.

MarcoWedel

Hi,

one solution could be:

QlikCommunity_Thread_172739_Pic1.JPG

QlikCommunity_Thread_172739_Pic2.JPG

hope this helps

regards

Marco

MarcoWedel

I think the difference might be that not only your column "% Share" is an expression.

hope this helps

regards

Marco

Anonymous
Not applicable
Author

Marco,

Yes, I actually have 5 others calculated expressions...will this matter?

MarcoWedel

If one of the other expressions is not null, the property "suppress missing" for the "% Share" expression will not supress the row. So one possibility could  be to add a condition to all of your expressions (see my previous example).

regards

Marco

sinanozdemir
Specialist III
Specialist III

Sorry for the late reply.

I agree with MarcoWedel

You may want to check other expression and make sure that they are all set to suppress null values