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

select particular data

Hello,

I have a table as following,

CompanyNameDateStockStockFlag
AAA2015-07-1525-
AAA2015-07-1630Y
AAA2015-07-1628Y
BBB2015-07-1516-
BBB2015-07-1635Y
BBB2015-07-1640Y

I want to only sumary the amount of the stock with condition 'stockflag=Y' by company name and date, my expression is like '

if(StockFlag='Y',sum({$<CompanyName>}Stock),'NA'), is it correct ?

If use 'set analysis' statement, how about the expression ?

Expecting result is like:

CompanyNameDateStock
AAA2015-07-1658
BBB2015-07-1675

Thanks

Jessica

4 Replies
robert_mika
Master III
Master III

sum({<StockFlag={'Y'}>} Stock)

2015-07-28_044446.png

svenkita
Creator II
Creator II

While creating the Straight Table or Pivot Table

have the

Dimension as CompanyName and Date

and the expression as

Sum({<StockFlag={'Y'}>} Stock)

SatyaPaleti
Creator III
Creator III

Hi Jessica,

Take CompanyName and Date as Dimensions


in Expression :- Sum({<StockFlag={'Y'}>} Stock)


Thank you,

Satya

Not applicable
Author

Hi Jessica lv,

Take Dimensions: Company Name and Date

Expression: Sum({<StockFlag={'Y'}>}Stock) .

Regards,

Kalyan.