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: 
daniel_martin_a
Partner - Contributor II
Partner - Contributor II

Show count last value by dimension graph

Hi to all.

I need show count of incident by month and last phase for this month and incident.

Please, I attach a little example of this problem (because I try some aggr and not found the solution) to help me.

On this example, I want obtain on YearMonth = 201910 the values phase = 3 then 1 and phase = 4 then 1, but obtain other values (first phase by Incident and YearMonth, phase 2 and phase 3, I want last phase). Rest of months are ok in this example.

Please, can you help me.

Thanks.

Regards.

Labels (2)
1 Solution

Accepted Solutions
daniel_martin_a
Partner - Contributor II
Partner - Contributor II
Author

I answer me.

=count(
AGGR(
if(MaxString(TOTAL <ID,YearMonth>
Aggr(MaxString( ID & '%' & Phase),ID,YearMonth)) =
ID & '%' & Phase,
ID) ,
ID,YearMonth,Phase)
)

Thanks.

View solution in original post

1 Reply
daniel_martin_a
Partner - Contributor II
Partner - Contributor II
Author

I answer me.

=count(
AGGR(
if(MaxString(TOTAL <ID,YearMonth>
Aggr(MaxString( ID & '%' & Phase),ID,YearMonth)) =
ID & '%' & Phase,
ID) ,
ID,YearMonth,Phase)
)

Thanks.