Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Count of records in a straight table

Hi

I am trying to display count of records in a straight table , my table is showing 13 but the expression I have shows 8

Can know the correct expression ?

Thanks

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Maybe

=Count(

{<CLNDR_DT={'$(=vSelectedDate)'}, [User Friendly Metric Name]=, Date=, [Metric Type]=>}

DISTINCT if(left([Metric Type], 4) = 'TP50', [User Friendly Metric Name])

)

View solution in original post

2 Replies
swuehl
MVP
MVP

Maybe

=Count(

{<CLNDR_DT={'$(=vSelectedDate)'}, [User Friendly Metric Name]=, Date=, [Metric Type]=>}

DISTINCT if(left([Metric Type], 4) = 'TP50', [User Friendly Metric Name])

)

stabben23
Partner - Master
Partner - Master

Hi, Use a aggr in Previous expression, like this:

aggr(FirstSortedValue( { <CLNDR_DT={"<=$(=vPreviousDate)"}, [User Friendly Metric Name]=, Date=, [Metric Type]=>} Value, -Date,1 ), [User Friendly Metric Name])