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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
michael_emram
Contributor
Contributor

How can I show value for non related dimension

Hi !

I have a not related value (Std Cost) to one of my dimension (PO Number), from different table as you can see in the straight table below

Capture2.PNG

Then, when I create a pivot table this is the result I get:

If I collapse on part, the calculation is ok, but if I open to PO Number, my Std Cost (good value) appears only for the first line, and I want it to duplicate the value of the Std Cost on the part level.

Capture.PNG

Currently, this is the set analysis calculation for the Std cost:

MAX(AGGR([Std Cost ($)],[Part Num],[Sort Fiscal])

How to see the same standart cost for both of the lines please ?

Thank you !

1 Solution

Accepted Solutions
sunny_talwar

Can you try this:

Aggr(NODISTINCT [Std Cost ($)], [Part Num], [Sort Fiscal])

View solution in original post

6 Replies
sunny_talwar

Try this:

Max(TOTAL <[Part Num]> Aggr([Std Cost ($)], [Part Num], [Sort Fiscal])

adamdavi3s
Master
Master

Please see the attached example, i've been lazy with my fieldnames sorry but the forumla:

=max(total <partnum> aggr(max(stdcost),partnum,sortfiscal ))

should work

michael_emram
Contributor
Contributor
Author

Hi,

Thank you both, but in the screenshot I selected only one Part, but by applying your formula I get the same number for all my Parts.

In fact, I need one Std Cost for each Part and each Sort Fiscal (Year-Month)

Do you have any idea ?

Thank you

adamdavi3s
Master
Master

I tweaked mine slightly:

=max(total <partnum,sortfiscal> aggr(max(stdcost),partnum,sortfiscal ))

This seems to work in the attached example....

sunny_talwar

Can you try this:

Aggr(NODISTINCT [Std Cost ($)], [Part Num], [Sort Fiscal])

michael_emram
Contributor
Contributor
Author

Yes in fact that's work, thank you but this is only work with the specific field Part Num, and I have a lot of others field in the chart (like Part Description, Main Family ...) and when I replace this, it give me back the highest of all data (1 value for all)

That is why I used AGGR, to say him the lowest level, and here, it seens to be very specific and only to Part Num

Do you have an idea ?