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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
kunkumnaveen
Specialist
Specialist

Expression partially working

Hello All,

                Some thing weird is happening with me, expression is working on one row and not working on another row

I am trying to get minimum NUMBER's  Volume ,the expression I wrote is below

  Expression:

                

  sum({<SCOPE={'YES'},NUMBER={"$(=Num(min(NUMBER),'000'))"}>}total<[MATERIAL CODE],[VENDOR CODE]>VOLUME)

Capture.PNG


what I suppose to get is for

                                              0002 and 098C              733114 is min volume(I am getting )

for                                          40B  and  061                    473 is min volume (Getting Null)

what am I missing in my expression


Thanks









1 Solution

Accepted Solutions
sunny_talwar

May be this

FirstSortedValue(Aggr(Sum({<SCOPE = {'YES'}>} VOLUME), [MATERIAL CODE], [VENDOR CODE], NUMBER), Aggr(NUMBER, [MATERIAL CODE], [VENDOR CODE], NUMBER))

View solution in original post

11 Replies
kunkumnaveen
Specialist
Specialist
Author

when I select only one particular material when it is showing the min volume

Capture.PNG

Anil_Babu_Samineni

May be this?

Sum({<SCOPE = {'YES'}, NUNBER = {'$(=Min(NUMBER))'}>} VOLUME)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
kunkumnaveen
Specialist
Specialist
Author

HI,i tried your expression ,I am getting both the rows zero, i thinking format for NUMBER has to be there

Anil_Babu_Samineni

This?

Sum(Aggr(Sum({<SCOPE = {'YES'}, NUMBER = {'$(=Min(NUMBER))'}>} VOLUME), [MATERIAL CODE], [VENDOR CODE]))

OR

Sum({<SCOPE = {'YES'}, NUMBER = {'$(=Min(NUMBER))'}>} TOTAL <[MATERIAL CODE], [VENDOR CODE]> VOLUME)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
shraddha_g
Partner - Master III
Partner - Master III

can you share sample app
?

kunkumnaveen
Specialist
Specialist
Author

For some reason both your expression are not working I am sharing those two materials and vendors sample file

PFA sample file

kunkumnaveen
Specialist
Specialist
Author

PFA Sample file

kunkumnaveen
Specialist
Specialist
Author

I have shared sample data

Anil_Babu_Samineni

Might stalwar1‌ has some hands on

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful