+ Reply to Thread
Results 1 to 2 of 2

Using PowerPivot/DAX or other Tools to Replace Complicated SUMIF Scheme

  1. #1
    Registered User
    Join Date
    05-29-2015
    Location
    Providence
    MS-Off Ver
    2013
    Posts
    32

    Using PowerPivot/DAX or other Tools to Replace Complicated SUMIF Scheme

    I am building a system that eliminates data entry for my company by mapping P/L's together and using SUMIF/SUMPRODUCT functions to move data from trial balances to existing financial models. Giving the old models incredible flexibility in allowing the user to chose parameters around the data they would like to view (determined by conditionals in the SUMIF functions). The eventual goal is to move to a product such as SQL server to keep the files small and the data centralized. In the mean time, I am looking for a way to optimize the current functionality. I started by resetting used ranges and converting to xlsb, resulting in a size decrease of 75 MB to 25 MB.

    Now, I am looking for an alternative to using the SUMIF functions as they are heavy and slow calculating. I had been reading up about PowerPivot and DAX functions which seem to accomplish the same goal very quickly. However, due to the size of the model and the knowledge of the end-user, I need to keep the models working in the standard excel environment. Is there a way to preform DAX calculations within a normal spreadsheet and not a PivotTable? If not, are there any faster alternatives for preforming SQL-style data aggregation based on user defined parameters without using SUMIFs?

    Thank you so much in advance.

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,913

    Re: Using PowerPivot/DAX or other Tools to Replace Complicated SUMIF Scheme

    Is there a way to preform DAX calculations within a normal spreadsheet
    No, unfortunately. It will require PowerPivot add-in.

    There are several ways to work around it. In order of my personal preference...
    1. Leverage PowerQuery and write custom "M" (i.e. PowerQuery) function

    You can pass parameter using Table, Named Range etc.
    Most, if not all, aggregation can be performed in PowerQuery before loading data to data model/table.
    Easy GUI to work with.
    It may take some getting used to syntax for "M".

    2. VBA code - ADODB.Connection & Recordset

    It's pretty easy to work with, if you know basics of VBA and SQL.
    Easily able to pass parameter as needed.
    There are few easy errors that can be made (Ex. Failing to deal with alphanumeric mixed column; Moving violation within Recordset; Endless Loop etc)

    3. MS Query - SQL Command Text
    Much like SQL Server, but with some limitations etc.
    Will have issue dealing with alphanumeric mixed column (MS Query will auto-select text/numeric type based on first 8 rows of a given column).
    May need VBA to pass parameter and/or update connection/Command Text.
    Very outdated GUI.

    You can also use variable array and/or data collection (Scripting.Dictionary, Collection, ArrayList etc) in VBA code to perform aggregation/transformation.
    But I don't recommend it, unless you are familiar with limitations and best practices of this method.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] help with a complicated find and replace
    By stephme55 in forum Excel General
    Replies: 4
    Last Post: 12-14-2015, 02:35 PM
  2. complicated find and replace
    By ammartino44 in forum Excel General
    Replies: 2
    Last Post: 08-14-2015, 03:39 PM
  3. complicated find and replace
    By ammartino44 in forum Excel General
    Replies: 5
    Last Post: 06-13-2015, 04:12 AM
  4. PowerPivot SUMIF type Calculated Column ERROR
    By matt4003 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 01-26-2015, 04:17 AM
  5. [SOLVED] Formula to use in complicated replace
    By njelezn in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-20-2015, 07:11 PM
  6. Replies: 10
    Last Post: 09-08-2014, 08:46 AM
  7. Complicated Find - Replace
    By abertrand in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-13-2009, 01:13 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1