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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
cpalbrecht
Creator
Creator

Fill gaps in pivot table

I have the following pivot table:

pivot_table.JPG

Each row represent a specific state. The states are grouped. Each column is a timestamp.

Let's take the group "operational_status". At 09:52:30.273 the operational state changed to converter, isolation_monitor and safety_relay. And at 09:52:39.784 the state changed again to converter and safety_relay.

Now I want to have the first state change for each timestamp until the next state change and so on. For that example I want to have the first state (converter, isolation_monitor and safety_relay) for each red marked column.

1 Reply
Digvijay_Singh
MVP
MVP

If these red mark values are null then may be something like this in the expression of values shown for timestamp, I assume timestamp value is a kind of flag value, helping to color specific cells.

if(len(timestampvalue)=0,before(timestampvalue),timestampvalue)