Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Veerendra_Katikala
Contributor II
Contributor II

Count mismatch in table and text box

Hi Experts 

I wrote a following query which shows 7 Material Codes but as per the data it should have 6 Material Codes as per the logic and other one ( 10065281 ) should not be part of the table

if((Sum(([GR/IR Spend(GC)]*Exchange))/Sum(Quantity))>
(Sum(StdPricePerPOUOM*Quantity)/Sum(Quantity)),
count(distinct [Integrated JnJ Material Code])) 

10065281 should be removed from the list

Veerendra0509_0-1720006679487.png

I would like to display count of material codes in the Text box as well. quick help much appreciated 

 

Labels (5)
1 Solution

Accepted Solutions
marksouzacosta
Partner - Specialist
Partner - Specialist

To hide the zero records, you can uncheck this property in your chart.

marksouzacosta_0-1720064602051.png

Regarding the count, your If expression looks fine. Your screen shot does not look to match that expression. Can you please double check?

Regards,

Mark Costa

Read more at Data Voyagers - datavoyagers.net

View solution in original post

3 Replies
Lisa_P
Employee
Employee

In your screenshot, I can't see the IF

marksouzacosta
Partner - Specialist
Partner - Specialist

To hide the zero records, you can uncheck this property in your chart.

marksouzacosta_0-1720064602051.png

Regarding the count, your If expression looks fine. Your screen shot does not look to match that expression. Can you please double check?

Regards,

Mark Costa

Read more at Data Voyagers - datavoyagers.net
Veerendra_Katikala
Contributor II
Contributor II
Author

Thanks all for your time the Issue got fixed i did some blackened calculation and it worked