• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Pivot Table Measure - calculate amount based on incremental value range|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Pivot Table Measure - calculate amount based on incremental value range|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…Pivot Table Measure - calculate amo…
sp_PrintTopic sp_TopicIcon
Pivot Table Measure - calculate amount based on incremental value range
Avatar
MartynB
North West England

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
June 9, 2020
sp_UserOfflineSmall Offline
1
June 11, 2020 - 2:05 am
sp_Permalink sp_Print

Hi

I am seeking some expert advice on how best to create a measure for a pivot table to calculate a rebate amount based on invoice values over a 3 month period.  I have attached a workbook with a simplified worksheet with the dataset being used, pivot and manual table showing the results.

The period is not related to calendar quarters but a contract year (started from the commencement date).  The rebate is based on the total value of charges in a 3 month period and is based on the incremental value in that period.  e.g.

Total Charges - £3,753,513.95

1% of £3,000,000 , 1.25% of £500,000, 1.5% of £253,513.95

I am open to any suggestions on how to best achieve my desired outcome.

Avatar
Purfleet
England
Member
Members


Trusted Members
Level 4
Forum Posts: 412
Member Since:
December 20, 2019
sp_UserOfflineSmall Offline
2
June 12, 2020 - 3:08 pm
sp_Permalink sp_Print

I am not sure there is a particulary easy way, but might be able to make it more dynamic.

Just a question at the moment - in Period 1 you are calcing 1% of 2.7m, and in period 2 you are calcing 1% of 3m and 1.25% of the balance (and so on). But the table states that under 2m there is no discount.

So i would have thought that period 1 should be

2,000,000*0%=0
776,676.76*1%=7766.76

and Period 2

2,000,000*0%=0
1,000,000*1%=10000.00
71621.16*1.25%=895.26

Or have i just read the table wrong?

Avatar
MartynB
North West England

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
June 9, 2020
sp_UserOfflineSmall Offline
3
June 12, 2020 - 7:44 pm
sp_Permalink sp_Print

Hi

Thanks for the reply and apologies for any confusion with the discount table.  The discount is triggered if the total value in a period exceeds £2M and then the percentage values applied as per my explanation, so in the case of P1 the 1% is applied to the whole £2.7M. The first row of the discount table can be ignored as I agree it is misleading. Hope this makes sense.

To clarify my example above.

Value for period is £3,753,513.95 - this triggers volume rebate as it exceeds £2M

1% applied to the first £3M = £30,000
1.25% applied to the next £500,000 = £6,250
1.5 % to the next £500,000 (actual £253,513.95) = £3,802.71
2% would be applied to any amount above £4M

My goal is, if possible, to automate this calculation and update as each monthly dataset is imported and update a simple dashboard I am going to create.

Avatar
Purfleet
England
Member
Members


Trusted Members
Level 4
Forum Posts: 412
Member Since:
December 20, 2019
sp_UserOfflineSmall Offline
4
June 12, 2020 - 8:41 pm
sp_Permalink sp_Print

That makes sense, thanks.

To avoid complication and the fact that it is in a dashboard i would go with a Staging table to calc everything and the dashboard to show it.

You can then have the value calculating and the rebate in another column summed to the total.

There are a few benefits doing it this way as you can seeing calculations are happening, you can adjust the rates/thresholds easily and the spreadsheet is likely to be quicker and more reliable than with a funky super calculation.

Pivot-Table-Measure-calculate-amount-based-on-incremental-value-range_purfleet.pngImage Enlarger

Not want you really wanted but a possible alternative?

Purfleet

sp_PlupAttachments Attachments
  • sp_PlupImage Pivot-Table-Measure-calculate-amount-based-on-incremental-value-range_purfleet.png (114 KB)
Avatar
MartynB
North West England

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
June 9, 2020
sp_UserOfflineSmall Offline
5
June 15, 2020 - 9:04 pm
sp_Permalink sp_Print

Hi

Many thanks for your help, this seems the best approach to take on this stage of the calculation.  The reason I thought about a Pivot calculation was to allow me to calculate the % that would be due to each business function based on their charges during each period. I think I can use a similar approach to this using the staging table as the base information.

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Richard West, Jeff Krueger, Tom VAN LOO, Kylara Papenfuss, Janset Beyaz, Shawn Barwick, Nada Perovic
Guest(s) 8
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
John Chisholm
vexokeb sdfg
John Jack
Malcolm Toy
Ray-Yu Yang
George Shihadeh
Naomi Rumble
Uwe von Gostomski
Jonathan Jones
drsven
Forum Stats:
Groups: 3
Forums: 24
Topics: 6212
Posts: 27236

 

Member Stats:
Guest Posters: 49
Members: 31889
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.