Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Calculation Help

Featured Replies

Hi,

 

I have a client that wants to see where their Commodity is gong each month; By Country / By Commodity.  So based on their List I created a Destination Table to hold this list of destination and to add additional destinations if they need to.  Same with there commodity; I created a Commodity Table.  However, I had to hard code the calculation so the summaries would work in their reports.  

 

How can I correct this so I don't have to manually update this calculation each time they add a Destination, or Commodity ( Category ).  And then will the Summaries be able to distinguish the differences ??

 

 

If ( Destination = "Belgium" and Category = "Copper" ; Price Cost Total + Price Margin Total ;
If ( Destination = "Brazil" and Category = "Copper" ; Price Cost Total + Price Margin Total ;
If ( Destination = "China" and Category = "Copper" ; Price Cost Total + Price Margin Total  ;
If ( Destination = "Germany" and Category = "Copper" ; Price Cost Total + Price Margin Total ;
If ( Destination = "Greece" and Category = "Copper" ; Price Cost Total + Price Margin Total ;
If ( Destination = "Hong Kong" and Category = "Copper" ; Price Cost Total + Price Margin Total ;
If ( Destination = "India" and Category = "Copper" ; Price Cost Total + Price Margin Total ;
If ( Destination = "Indonesia" and Category = "Copper" ; Price Cost Total + Price Margin Total ;
If ( Destination = "Korea" and Category = "Copper" ; Price Cost Total + Price Margin Total ;
If ( Destination = "Mexico" and Category = "Copper" ; Price Cost Total + Price Margin Total  ;
If ( Destination = "Pakistan" and Category = "Copper" ; Price Cost Total + Price Margin Total ;
If ( Destination = "Spain" and Category = "Copper" ; Price Cost Total + Price Margin Total ;
If ( Destination = "Taiwan" and Category = "Copper" ; Price Cost Total + Price Margin Total  ;
If ( Destination = "Thailand" and Category = "Copper" ; Price Cost Total + Price Margin Total ;
If ( Destination = "The Netherlands" and Category = "Copper" ; Price Cost Total + Price Margin Total ;
If ( Destination = "UK" and Category = "Copper" ; Price Cost Total + Price Margin Total;
If ( Destination = "USA" and Category = "Copper" ; Price Cost Total + Price Margin Total ;
 
 "" ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )
 
Any assistance in this matter I would be grateful.
 
Thank you.
 
Tom :-)

Store these things in their own table so that you can find the correct record to know what formula to apply.

 

As an aside; for this type of calc you would not use nested IFs but the Case function.

It sounds like what you're looking for is a sub-summary report, not necessarily a calculation. The calculation you do have looks like the result is "Price Cost Total + Price Margin Total" regardless of the combination of country and category; make a calculation field from just that, then make a summary field based on that calculation. For the report, make a list-view layout with a summary layout part that appears when sorted by commodity, and put the summary field in that summary body part (in addition to the country and commodity fields). Make a script that sorts by country, then commodity. When a found set of records is sorted like this, the summary field will summarize the data within each country/commodity group.

  • Author

Hi jbante

 

I have Sub Summaries.  What happened was that I placed the "Categories" vertical.  This was a requirement from the customer; all their reporting were from Excel Docs.  I tried the table view but I have yet to find a useful display to a client in Table View.

 

Please see .pic

 

To place the value for each vertical category, I had to create the above calculations.  The customer really like these reports I created for them.  They had Excel style worksheets and wanted to keep thing similar and one report they request it to be exactly like the Excel.

 

At to the nested "IF"; I agree.  It is an old habit that I have yet to break.

 

Anyway, any assistance for the above issue I would be grateful.

 

Thank you.

 

Tom

 

 

post-89394-0-11562700-1373388703_thumb.p

What you're trying to do is called a "cross-tab" report. If you search the forums for that, you should be able to find a couple different techniques you might be able to use.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.