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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
noman212
Creator III
Creator III

Count

Hi friends,

i have a date field, from which i made month ... like jan, feb , mar..

Now i want to calculate the count of these month in Month(Date) fieled.

For Example.

In Month field i have JAN,FEB, MARCH.

I want Count of these month as 3 . Simple count is not working.

1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

Hi,


Try using Count() and Distinct


Count( Distinct MonthDimensionName)


Regards,

Jagan.

View solution in original post

10 Replies
tresesco
MVP
MVP

Count( Distinct YourMonthField)

PrashantSangle

Hi,

What is your expression?

Count(distinct Month) should work if want count of distinct Month

or

Count(Month) gives count of all month

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable

Hello,

I am not sure I understand your question. do u want to do a distinct count of the values in the Month field? do wish to do this is a script or a chart? what does the count you have created returns?

Nir

ashfaq_haseeb
Champion III
Champion III

Hi,

use distinct keyword.

Regards

ASHFAQ

jagan
Partner - Champion III
Partner - Champion III

Hi,


Try using Count() and Distinct


Count( Distinct MonthDimensionName)


Regards,

Jagan.

noman212
Creator III
Creator III
Author

Its display count for whole year i want listed month count , in  my qvd i have only 3 months records.

ashfaq_haseeb
Champion III
Champion III

Can you post sample

Count( Distinct [Yourmonthfield]) must work.


Regards

ASHFAQ

noman212
Creator III
Creator III
Author

Its Work fine Thanks alot

noman212
Creator III
Creator III
Author

Thanks again jagan mohan