Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Conditional calculation NOT based on dimension in a table

Hi All

I have a requirement to do a particular calculation as follows :

Source data looks like --

Catalog#NTACustomerPrice
ABC123Ax12.32
ABC123Ax2.4
ABC123Ay6.5
ABC123By8.6
ABC123Bz9.2
ABC123Bz8.9

I have selections on Catalog# and NTA. I have a button to Show/Hide Customer from the table.

I have to display min Price based on Catalog#, NTA and Customer against Catalog#

So the output I should get

ABC123           $2.4

irrespective of the 'Show/Hide' Customers.

Please advise. Attached is the sample file.

1 Solution

Accepted Solutions
alexandros17
Partner - Champion III
Partner - Champion III

Ok I did not understood what you needed, try now with the example

View solution in original post

9 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Here is your example:

Not applicable
Author

Thanks Alessandro but I cant see any difference in the file you provided.

I need the same value , i.e $2.4 against ABC123 even if the customer data is shown.

Not applicable
Author

Forum experts pls help. Can Set Analysis be used in this case?

Anonymous
Not applicable
Author

In your Straight Table object how about :

  • Tab:  Dimension Limits
  • Highlight: Customer :
    • Show only: Smallest: 1


alexandros17
Partner - Champion III
Partner - Champion III

Ok I did not understood what you needed, try now with the example

male_carrasco
Creator
Creator

Please try :

aggr(min(Price), Catalog#)

Best Regards.

Ale.-

Not applicable
Author

Bill, that would limit the customer to only one.

Min Price - The lowest of the prices corresponding at Customer level for a particular combination of Catalog and NTA.

If I take the above data set as example, different cases will be as below :

a) Nothing selected in Catalog# and NTA. Click on 'Show Customer'

I want the output to be -

ABC123x2.4
ABC123y2.4

b) Nothing selected in Catalog# and NTA. Click on 'Hide Customer'

Output should be -

ABC1232.4

c) NTA = 'A' . Click on 'Show Customer

Output should be

ABC123x2.4
ABC123y2.4

d) NTA = 'B' . Click on 'Show Customer

Output should be

ABC123x8.6
ABC123y8.6


e) NTA = 'A' . Click on 'Hide Customer'

ABC1232.4

f) NTA = 'B' . Click on 'Hide Customer'

ABC1238.6

Hope this helps.

simenkg
Specialist
Specialist

Hi Paramita,

We define a "Shadow table" with the minimum price per Catalog#. We do this in a variable vMinPrice defined as:
=aggr(min(Price),Catalog#)


The expression will then be:

$(vMinPrice).

I did not test it for more than one Catalog#, but I think it should work fine.


Regards
SKG

Not applicable
Author

Thanks Alessandro