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

Show only latest product price

How do I show only latest Product Price in a straight table:

I would like to show only the latest product price

Please assist with conditional statement or expression string for this straight table:

1 Solution

Accepted Solutions
malini_qlikview
Creator II
Creator II

Hi,

Use a Calculated dimension as below

=Aggr(Max(ProductPrice),ProductCode)

View solution in original post

12 Replies
sunny_talwar

Try this expression:

=FirstSortedValue([Product Price], -[_Startdate product])

hic
Former Employee
Former Employee

Try

=FirstSortedValue([Product Price],-1*[_Startdate product])

HIC

sunilkumarqv
Specialist II
Specialist II

sonthing like this

firstsortedvalue(Product Price, stardate Product )

Not applicable
Author

Still not working, do I use Product Price as a second dimension and add that to the conditional statement?

Or do I use the above string as an expression and call it Latest Product Price?

I basically only want one value (LatestProductPrice) for BM.H.003

All the other rows should not show.

sunny_talwar

Use only [Product code] as dimension and this -> =FirstSortedValue([Product Price], -[_Startdate product]) as your expression.

Assuming [Product Price] and [_Startdate product] are field names from your database.

sunny_talwar

Check out this link for some information on FirstSortedValue: Value Associated with Min/Max Value of Another Field (Front End Solution)

HTH

Best,

Sunny

Not applicable
Author

Hi Sunny

The field names comes out ok in the expression but I get no products or max price.

sunny_talwar

You need to also make sure that the case of the field names also match. The expression Editor may not find a difference between PRODUCT and Product, but if the field name is Product, you cannot use PRODUCT. See if that is what is missing.

Not applicable
Author

Hi

  Load

  productcode,

  discountprice,

  max(satartdateproduct) as latestdate

resident  abc group by productcode, discountprice ;

   load this data and call these dimenssion into table box then your done with your work

thanks

Manju