Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
QFanatic
Creator
Creator

Assistance with expression

Hello

PFA

in my data, an incident (inc_num) has a period that it was logged, as well as a flagged month, where it was flagged as a certain type of incident.

I want to create a summary chart that gives me

1) total Value where period = flagged_month

2) total Value where period <> flagged month

..in one chart...I would always be looking for Max(period) to get the current report

this is really just sample data to get my idea across. I do NOT want to use the column inc_num in the chart, as there may be millions of records.

 

Much appreciated.

Lorna

1 Solution

Accepted Solutions
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Do you mean like this?

test.PNG

period =flagged month:

=sum({<flag_month ={"$(=max(period))"}>}Value) //same month

period<>flagged month:

=sum({<flag_month -={"$(=max(period))"}>}Value) //same month

Refer qvw attached for the expression applied.

 

Thanks and regards,

Arthur Fong

View solution in original post

3 Replies
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Do you mean like this?

test.PNG

period =flagged month:

=sum({<flag_month ={"$(=max(period))"}>}Value) //same month

period<>flagged month:

=sum({<flag_month -={"$(=max(period))"}>}Value) //same month

Refer qvw attached for the expression applied.

 

Thanks and regards,

Arthur Fong

QFanatic
Creator
Creator
Author

Thank you very much

QFanatic
Creator
Creator
Author

Thank you!