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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
apthansh
Creator
Creator

Logic Help

HI ,

I need logic help on one thing..

I have data as below

Table1

BID LID

1     23

1     24

2     25

2     26

3     24

How can I get the LID count on each building

Thank s much

Labels (1)
11 Replies
Anonymous
Not applicable

Hi Ansh,

If you are using the logic in back end then use the following script,

Table1:

Load * Inline [ BID, LID

1, 23

1, 24

2, 25

2, 26

3, 24

];

Table:

LOAD

BID,

Count(LID) as [LID COUNT]

Resident Table1

Group by

BID;

drop table Table1;

and if you are using the logic in Front end then normal count(LID) will work in chart or table.

vishalarote
Partner - Creator II
Partner - Creator II

Try This,

t1:

load * inline[

BID ,LID

1,23

1,24

2,25

2,26

3,24

];

load BID,

count(LID) as Count

Resident t1

group by BID;

Capture1.PNG