Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Mastering Change Data Capture: Read Now
cancel
Showing results for 
Search instead for 
Did you mean: 
christian77
Partner - Specialist
Partner - Specialist

Counting Only From the Right Table

Hi people:

I have a problem.

I´m trying to count item_id. This field appears in two tables. When I count, it counts from both tables. I wanna count only from one of them.

How can I do that.

Please help me.

I´m posting example.

Thanks in advance.

4 Replies
spividori
Specialist
Specialist

Hi.

In the script add:

left join(Items)
load Item_id,
Item_id as ItemCount
resident Items;

and then count ItemCount.

I hope help you.

Regards.

Not applicable

Hello,

You may try this, Join the Peso field to the Items table and store it in Items and then drop the table OtraTabla: This way you will drop the field Item_ID from Otra Tabla, but retain the Peso data within Item Table.

Mama

Not applicable

Hi,

Try this:

count({$<~Peso={'*'}>} distinct Item_id)

Hope this helps

Regards!

matt_crowther
Specialist
Specialist

I might be missing something totally obvious here but the below in a text object works for me:

=count(if(len(Color)>1, Item_id))

It works when selections are made and selection aren't??

Hope that helps,

Matt - Visual Analytics Ltd