Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
bvanderzanden
Partner - Contributor II
Partner - Contributor II

Get Last Record within TimePeriod

I have a data set which consists of device inspections where they can inspect a device multiple times during a month.

Only the last test matters as they are the aggregate results of all of the tests.

I need to be able to sum up by time period (Month/Year) how may devices were tested (tested=1) and passed (passed=1).

I've attached a sample qvw with some data already loaded.

The desired result would be to have by Device Type the number of tested and passed devices by Period.

DeviceTypeDeviceCountMonthYrTestedPassed
Pipe2Jan-201111
Pipe1Feb-201110
Vent2Jan-201121
Vent2Feb-201111
1 Solution

Accepted Solutions
lironbaram
Partner - Master III
Partner - Master III

hei

attach is an example

look at the script

most of the work is there

as in the script , you put a flag on the last testy in the month for any device

from there the expressions are quite regular aggr function with set analysis

View solution in original post

1 Reply
lironbaram
Partner - Master III
Partner - Master III

hei

attach is an example

look at the script

most of the work is there

as in the script , you put a flag on the last testy in the month for any device

from there the expressions are quite regular aggr function with set analysis