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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Count Registers By Date

Hello,

I have the next fields:

Date, Field1 and Field2 (not Count)

CountRegistersByDate2.PNG

And I need a table like that:

CountRegistersByDate1.PNG

The issue is that I dont have the field count in my data model.

Is it possible somehow build a table like this without calculate this count field in the script?

Thank you,

Sara

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar

Try this as dimension:

=Aggr(RowNo(), Date, Field1)


Capture.PNG

View solution in original post

12 Replies
sunny_talwar

May be create the Count field like this:

LOAD Date,

          Field1,

          Field2,

          AutoNumber(Field1, Date) as Count

FROM Source;

or

LOAD Date,

          Field1,

          Field2,

          AutoNumber(Field1&Field2, Date) as Count

FROM Source;

Anonymous
Not applicable
Author

Thank you, It works. But there is another way to build this table without scripting?

sunny_talwar

You can probably add a calculated dimension, but will have to test it out. Can you share a sample?

sunny_talwar

Try this as dimension:

=Aggr(RowNo(), Date, Field1)


Capture.PNG

Anonymous
Not applicable
Author

I attached the qvw example. Thank you.

sunny_talwar

I assume this was in moderation and just went through? The issue is resolved right?

Anonymous
Not applicable
Author

That was it. Thank you

Anonymous
Not applicable
Author

Hello,

One doubt, my real data model contains dates with hours, I try with that :

=Aggr(RowNo(), floor([Date]), Field )

But it doesnt work.

Thanks

sunny_talwar

There could be another issue unrelated to the date field. Not sure what it can be without take a look. Can you share a more comprehensive sample where it isn't working?