+ Reply to Thread
Results 1 to 1 of 1

power pivot DAX running total by criteria

  1. #1
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    594

    power pivot DAX running total by criteria

    Hi,
    I've , been trying to create a running total by category using DAX , I have got it working but would welcome any advice if there's a better way;

    I've attached a file show working tryouts and results;
    the forumula I ended up with;

    < VAR prod = TESTA[Product]
    RETURN CALCULATE(SUM(TESTA[Qty]),
    FILTER(TESTA,TESTA[Index]<= EARLIER(TESTA[Index]) && TESTA[Product] = prod)) >

    Any advice on how to achieve this using M code in P query would be welcome.

    Richard
    Attached Files Attached Files

+ 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] Running total in power query with criterion
    By Dicken in forum Office 365
    Replies: 6
    Last Post: 01-10-2022, 09:33 AM
  2. Power Query Grouped Running Total
    By sle7en in forum Excel General
    Replies: 2
    Last Post: 02-13-2021, 06:30 PM
  3. Sub-Forum for Excel Power Tools (Power Query, Power Pivot & Power BI)
    By chullan88 in forum Suggestions for Improvement
    Replies: 10
    Last Post: 06-28-2018, 02:25 PM
  4. How to calculate running total + total remaining in a pivot?
    By Traste in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 11-03-2017, 10:41 AM
  5. Power Pivot is not running
    By misterno in forum Excel General
    Replies: 3
    Last Post: 02-27-2015, 11:02 AM
  6. Pivot Chart Running Total - Removing Current Year Future Total
    By car3489 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 07-27-2013, 03:35 AM
  7. [SOLVED] % of Running Total to Grand Total in Pivot Table
    By David in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-17-2005, 04:05 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