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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Count?

I've got a table with musician (ID, musician name,...) and table with their albums (ID, album name), so that musician1 have 4 albums, musician2 1 album,...

Now, I want to design a chart, that shows artists name and their number of albums. How can I do that? Thanks!

8 Replies
Not applicable
Author

Hi QursV52v,

Load

ID,MusianName from Table1;

Load

ID,AlbumName from Table2;

In chart just put a expression like count(Albumname) with ID or Musianname.

If you have any queries please let me know...

Regards,

Ravi....

martin59
Specialist II
Specialist II

Hello,

You have to put the Musician Name like dimension.

And your expression must be :

Count(Distinct ID_Album)


Regards,

Martin

Not applicable
Author

Where do I write 'Load...'?

'like count(Albumname) with ID' What do You mean with 'ID'?

martin59
Specialist II
Specialist II

You have to write your script to import data.

Folders --> Edit script.

You have got some assistant on bottom of window.

Martin

Not applicable
Author

I've edited the script as You wrote, but when I press reload it says to me: 'Cannot open file 'C:\Documents and Settings\...' Load ID, MusicianName from tblMusician' and the same for the Album...

martin59
Specialist II
Specialist II

What's your file ? xls ? mdb ? txt ?...

Not applicable
Author

mdb (Access DB)!

Not applicable
Author

Hi,

If it is a mdb then, You need to create a connection(First DSN) in script then select tables. if you are aware this activities then do, otherwise reply on the same.

Regards,

Ravi...