Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Straight table - above function to show only one value

I am showing the data looks like below in the straight table

DocumentOrderTextKeyHoursTotal Cost
2301960269101385973Electrical0.001,181.25
2301960269101385973Electrical11.251,181.25
2301960289101385973Repair2.00881.25
2301960289101385973Repair7.25881.25


I am expecting result to show the value like below in the straight table

DocumentOrderTextKeyHoursTotal Cost
2301960269101385973Electrical0.001,181.25
2301960269101385973Electrical11.250.00
2301960289101385973Repair2.00881.25
2301960289101385973Repair7.250.00


If (Document<> above(Document), Sum(Cost)*1,0) - I tried the function.It didn't work.

I have to show one document cost need to show one time only.

Advance thanks for any help.

1 Solution

Accepted Solutions
Not applicable
Author

Thanks Erich Shiino .Great it works now. Big Smile

View solution in original post

2 Replies
erichshiino
Partner - Master
Partner - Master

Hi,

I had to include another field to be able to create this straight table. I included an ID, so QlikView would not merge two lines with the same dimension values.

Because there is more than one dimension, I used above(total (... to actually get the value on the previous line.

I guess your cost value comes from a different table, but you get get the above (total) idea to apply in your app.

Hope it helps.

Rgds,

Not applicable
Author

Thanks Erich Shiino .Great it works now. Big Smile