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: 
Not applicable

Straight table

I have to have 4 columns...

Lease Name     Building Code          BU                     Exp                       Rsf

123                   ABC                      WH                    12/12/2020             20,000

456                   ABC                      OFFICE              12/6/2016              30,000

789                   ABC                      DC                     12/7/2018                6,000

I want to display 1 row on Building Code and max of Exp and sum(Rsf)

O/p

Building Code                 BU             Exp                     Rsf

ABC                              WH            12/12/20120          56,000

How can I do this ?

Thank you.

Labels (1)
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Dimension:

  • Building Code

Expressions:

  • BU: FirstSortedValue(BU,-Exp)
  • Exp: Max(Exp)
  • Rfs: sum(Rsf)

talk is cheap, supply exceeds demand

View solution in original post

9 Replies
satishkurra
Specialist II
Specialist II

PFA

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Dimension:

  • Building Code

Expressions:

  • BU: FirstSortedValue(BU,-Exp)
  • Exp: Max(Exp)
  • Rfs: sum(Rsf)

talk is cheap, supply exceeds demand
awhitfield
Partner - Champion
Partner - Champion

You may need to format the exp value as a date though.

HTH

Andy

satishkurra
Specialist II
Specialist II

PFA

Not applicable
Author

I need the BU based on the exp date as well

Not applicable
Author

FirstSortedValue(BU),this gives me error !

Kushal_Chawda
MVP
MVP

see this

Chanty4u
MVP
MVP

U can try,

=FirstStoredValue(Bu,-Exp)    //   here "-"  negative symbol gives u the sort order with highest value.

=FirstStoredValue(Exp,-Exp)

=sum(Rsf)

sunny_talwar
MVP
MVP

Did you miss the -Exp Pavana?

Look closely at what Gysbert suggested

Capture.PNG