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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
kunkumnaveen
Specialist
Specialist

how to write expression

HI,  i got a sample data like below,

partt        component12       plant_code         vendor_code   volumn     unit_price

A                  01                    xxx                      aaa               10            12

A                  02                    yyy                       bbb              15             12

A                  03                    zzz                       ccc               10             16

B                  -                        jjj                       ddd                  5             6

Untitled.png

i am able to display 35 only in one row ,how to display 35 in remaining two rows as well ,

Expression :aggr(sum(volumn),partt) ....what is wrong with his expression

Thanks

1 Solution

Accepted Solutions
sunny_talwar

Because you don't have an outer aggregation... May be add Sum()

Sum(Aggr(NODISTINCT Sum(volumn),partt)) * ....

View solution in original post

15 Replies
sunny_talwar

Try this

Sum(TOTAL <partt> volumn)

or this

Aggr(NODISTINCT Sum(volumn),partt)

Anil_Babu_Samineni

Because, Aggregation work only Group By condition

you can try somthing lke below

aggr(NoDistinct sum(volumn),partt)


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

Hello Sunny ,thanks for quick reply ,y do i am getting total as nullUntitled.png

sunny_talwar

Because you don't have an outer aggregation... May be add Sum()

Sum(Aggr(NODISTINCT Sum(volumn),partt)) * ....

kunkumnaveen
Specialist
Specialist
Author

Sunny ,can u help me how to group the below  column  460,30

Untitled.png

Untitled.png

sunny_talwar

Remove all dimensions except for partt

kunkumnaveen
Specialist
Specialist
Author

will it not possible by keeping dimensions

sunny_talwar

You want to see two rows? which vendor_code should it show for A in the single row is shows for A?

kunkumnaveen
Specialist
Specialist
Author

what i need to show is a new column at the end

Untitled.png

each row                     new _column

                                460-420

                                 460-420

                                  460-560

                                   30-30