Problems with PivotTable Running Totals and HOW TO FIX THEM

Sdílet
Vložit
  • čas přidán 30. 07. 2024
  • PivotTable running totals just don't make sense sometimes. In this video I'll show you why and how to fix them.
    Download the Excel file here: www.myonlinetraininghub.com/p...
    0:13 PivotTable running total example
    0:26 Regular PivotTable Running Total Limitations
    2:14 Running Total Power Piovt Measure
    6:02 Running Total Pivot Chart
    View my comprehensive courses: www.myonlinetraininghub.com/
    Connect with me on LinkedIn: / myndatreacy
  • Věda a technologie

Komentáře • 107

  • @diannedrechsler4792
    @diannedrechsler4792 Před 3 lety +1

    Wow Mynda, this is a great example. Something I definitely want to try at work.

  • @martinpaulbannister1745
    @martinpaulbannister1745 Před 2 lety +2

    Hi - thank you for this beautiful DAX running total explanation - straight to the point, very clear instructions - :)

  • @m.raedallulu4166
    @m.raedallulu4166 Před 2 lety +1

    For short, you are a genius instructor!
    Thank you Thank you Thank you . . .

  • @wayneedmondson1065
    @wayneedmondson1065 Před 3 lety

    Awesome example Mynda! Thanks for demonstrating this technique :)) Thumbs up!!

  • @ksu3001
    @ksu3001 Před 3 lety

    Hi Mynda, this running total measure DAX is really helpful. But how could I create a measure to calculate the difference of two consecutive rows in a power pivot table, say next row’s value minus current one? (My case is - my data table has records only when the plant generates data, thus the date or time is not continuous, or I will have some empty row if I use my calendar table to summarise data, as far as I know I cannot use DAX function like PREVIOUSDAY, EARLIER, etc). I am still not familiar with DAX functions, so could you make an episode to address the above mentioned issue for calculating difference of two role in a power pivot table by using DAX function. Thanks!

  • @johnbw2597
    @johnbw2597 Před 2 lety +1

    You’re the best I’ve came across btw.
    Explanations, definitions, professional terse intro with oblivious depth and passion is how I like it. Your dashboard training pretty much catapulted my career.
    My running totals stop at month ends, then rests every month. My lookup date column is week ending dates only. I wonder if that’s why.
    John
    Texas

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  Před 2 lety +1

      Wow, that's amazing to hear, John! Not sure what's causing your RT to reset each month. You can post your question and sample Excel file on our forum where we can help you further: www.myonlinetraininghub.com/excel-forum

    • @johnbw2597
      @johnbw2597 Před 2 lety

      @@MyOnlineTrainingHub It works. Thanks!

  • @mesutunsal727
    @mesutunsal727 Před 2 lety

    Hi Mynda
    Great video!
    I've searched around a bit now and only find examples similar to yours. I have a problem to run totals by date and product. I've tried to combine different DAX formulas but the runing totals with DAX only work when I exclude product. I would really appreciate and hope other will to it too if you can guide or help me.
    Example: In the end of your demonstration you made in the pivottable you,
    dragged and drop dates to "row"
    and dragged and drop measures to "Values" field
    How about when you drag and drop anydata (for.eg products) to "columns"
    Best Regards

  • @darrylmorgan
    @darrylmorgan Před 3 lety

    Hi Mynda!Really Great And Helpful Tip...Thank You :)

  • @chrism9037
    @chrism9037 Před 3 lety

    This was great, thanks Mynda!

  • @rsn29sep
    @rsn29sep Před 3 lety

    Hats off to you and your team.

  • @heikoheimrath7514
    @heikoheimrath7514 Před 3 lety

    Great video Mynda - have a great weekend - greetings from Germany

  • @intanshaharudin9657
    @intanshaharudin9657 Před 2 lety

    thank you ! you're the mentor I wish I have. God bless you

  • @samwatson2843
    @samwatson2843 Před rokem

    Elegant soloution! Thank you!

  • @shangrila3165
    @shangrila3165 Před rokem

    Hi Mynda, a SOS question 🙋‍♀️ what if I want to calculate the running total of the last 4 weeks for a MEASURE value? I tried multiple ways, and couldn’t get it. Could you please help me?

  • @KKB-tt4lj
    @KKB-tt4lj Před 3 lety

    Well explained! Thanks!

  • @johnbauer3158
    @johnbauer3158 Před 2 lety +1

    I found this formula helpful, but ended up having my running totals go to zero in months where I had no data, then reappearing in months with activity. Any recommendation on how to work around this?

  • @sachinkishore4115
    @sachinkishore4115 Před 8 měsíci

    Your tips are outstanding

  • @Acheiropoietos
    @Acheiropoietos Před 3 lety

    Nice one Mynda!

  • @sjd7aa
    @sjd7aa Před 2 měsíci

    Excellent video. Why at 4:00 do you choose Descending order? Aren't they ascending from oldest to newest? Thank you.

  • @Jay21121
    @Jay21121 Před 2 lety

    Is there a way to use the STDEV function in a pivot table custom formula? I keep getting #DIV/0 errors.

  •  Před rokem

    Great, it is a life saver!.

  • @georgeaslanis7166
    @georgeaslanis7166 Před 2 lety

    Great video! If there are two dates in the table i.e. Order date and shipped date, thus making one active and one inactive relationship, how can we get the RT result? Where do we place the USERELATIONSHIP formula? Thanks in advance!

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  Před 2 lety

      Thanks, George! You can use USERELATIONSHIP with CALCULATE like this:
      =CALCULATE( expression,
      USERELATIONSHIP(Table1[Column], Table2[Column]))

  • @ursula9875
    @ursula9875 Před 3 lety +3

    hi Mynda, thanx for posting, would it be possible to download the file?

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  Před 3 lety +1

      My pleasure! The file download link is available at the end of the video. However, I've also posted it in the video description now.

  • @nigelsapalit43
    @nigelsapalit43 Před 3 lety

    Well Said.. Keep on uploading new video

  • @vincentrovedatti8677
    @vincentrovedatti8677 Před 2 lety

    Hi Mynda, When using this formula for a measure on a data set that is really long (160k+ rows) it takes a very long time to load. Is there a more complex formula/filter I can apply to make sure it is not looking at all of the data (every row) to make the chart/table? Currently it take 3 minutes to make the chart.

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  Před 2 lety

      Try just using the Show Values As > Running Total and removing the sub totals as you wouldn't need these for a chart anyway.

  • @jarrodtuxworth9670
    @jarrodtuxworth9670 Před 2 lety

    Thanks for the great video. Does this work the same way when we want the running total along the bottom rather than down the side?

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  Před 2 lety

      Yes, you can orientate the PivotTable with the running total going across columns.

  • @redpoo
    @redpoo Před 2 lety

    Hi Mynda, how did you get the option for Actual(Date)? I assume that's referring to an Actual column in the date table? When I create a date table it doesn't add data columns into it.

  • @MultiMrDJ
    @MultiMrDJ Před 10 měsíci

    Hi Mynda, Great video! One difference to the built in Show values as 'Running Total In..' is that the built in version repeats the value from the last month if the next month does not have any actuals values (or forecast or budget), while your version leaves an empty row and a gap in the graph. For example, if you remove the values for actuals and forecast for August 2020 in your example, you get a gap in the graph. Any way to fix the measure to keep the value from last month instead?
    David

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  Před 10 měsíci

      Hi David, Yes, unfortunately, this formula doesn't allow for gaps in your dataset. I don't have a tutorial that explains the solution, so I recommend you post your question and sample Excel file on our forum where someone can help you further: www.myonlinetraininghub.com/excel-forum

  • @seanain1
    @seanain1 Před 2 lety

    Thank You

  • @jamespaterson4529
    @jamespaterson4529 Před 3 lety

    Hi Mynda, would it be possible to create a burndown chart which is almost the opposite of running totals?

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  Před 3 lety

      Yes, it's possible, but I don't have any examples I can point you to.

  • @MrNoBSgiven
    @MrNoBSgiven Před 2 lety

    Simply amazing. Love hour channel.
    Question: how would one get the beginning -->month activities --> ending running running subtotals In pivot tables? Subject for another video ? 😁

  • @stephanegarcia5567
    @stephanegarcia5567 Před 6 měsíci

    Great video! For me it looks like a bug in the traditional pivot chart function but nevermind.
    Here is the formula shown in the video :
    =calculate(SUM(Table_with_data[value_field]),FILTER(ALLSELECTED(your_calendar[date]),ISONORAFTER(your_calendar[date],max(table_with_data[date]),desc)))
    It works also for cumulative count of values by replacing SUM in the formula with COUNT (or COUNTA for non numerical values)

  • @Trucpq
    @Trucpq Před 2 lety

    Great. Thanks

  • @injunnear72
    @injunnear72 Před 2 lety

    Thank you! In your example, what if you have forecast in 2022 but no actuals. How do you show zero for actuals RT in 2022 instead of repeating 301,845 . I would like to show where the RT stops in a year and not repeat the values.

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  Před 2 lety

      Hi Jason, in my example the actuals stop in April and so does the running total, so it appears to do what you describe.

  • @shoppersdream
    @shoppersdream Před 2 měsíci

    Nice, thanks! Mynda, I couldn't watch the whole video since it gave an error on Mac that It will not work properly on Mac. My question to you is how to take out Total of Running Total? I have created my Pivot Table and got the Running Total but now at the end, I want it to show Total of Running Total? Thanks

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  Před 2 měsíci

      The total of a running total is the same as the column total, so you don't need a running total to get this. Hopefully, I've understood your question. If not, please post your question and sample Excel file on our forum where someone can help you further: www.myonlinetraininghub.com/excel-forum

  • @Jill_Liu
    @Jill_Liu Před rokem

    hi Mynda, thanks for your video, however the part ISONORAFTER part is a little bit confusing, could you please kindly explain a little bit.

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  Před rokem

      Hi Jill, I don't have any tutorials specifically on ISONORAFTER, but perhaps this breakdown of the function will help: learn.microsoft.com/en-us/dax/isonorafter-function-dax

  • @hardikey
    @hardikey Před 3 lety +1

    I’ve seen many masters in excel…but you are outstanding. You are doing with so confidently, we have to pause the video to understand.
    Curious to know how long you are using this excel ?

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  Před 3 lety +1

      Thanks for your kind words 😊 I’ve been using Excel for nearly 30 years 😉 but really my skills improved significantly when I started teaching others about 12 years ago.

    • @Lyriks_
      @Lyriks_ Před 2 lety

      @@MyOnlineTrainingHub Holy molly you look like you are in your thirties lol

  • @alikoohi8265
    @alikoohi8265 Před 2 lety

    What should we do if we want the pivot table show the value not sum or mean or any other modifications on the values of each row?

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  Před 2 lety

      PivotTables aggregate data. If you don't want to see the data aggregated, then you need to bring in the fields from all the columns to the row labels until such time as it is no longer able to aggregate any of the values.

  • @aliasghar09
    @aliasghar09 Před 3 měsíci

    This is excellent. May in know how you do the running total of subtotals. Lets say for a product over months(horizintal) if you need to show data like for first month, the first value, for second Month value of first month plus value of 2nd Month and for 3rd month value of 1st plus value of 2nd plus value of 3rd and so on...

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  Před 3 měsíci

      Please post your question and sample Excel file on our forum where someone can help you further: www.myonlinetraininghub.com/excel-forum

  • @lucalenzi9922
    @lucalenzi9922 Před 2 lety +1

    I'm a beginner of Power Pivot: I downloaded the Excel file but didn't understand when and where you created the calendar table, I found it directly in data model but it doesn't exist in Excel sheets. Is it possible?

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  Před 2 lety +1

      On the Design tab you can create a date table based on the dates in the model via the Date Table drop down > New. If you don't see this option then you have an old version of Excel that doesn't have it. If so, you can create one in Power Query or Excel.

  • @edsta714
    @edsta714 Před 3 lety

    How would you “reset” the running total for each year?

    • @Acheiropoietos
      @Acheiropoietos Před 3 lety

      It would be dependent upon the date field, a chart filtering for 2021 data, would not show 2022. But another chart with the 2022 filter, would.

  • @zulhairibaba
    @zulhairibaba Před 3 lety

    Can you show to create a "calendar table"?

  • @tobiisagoodboy7935
    @tobiisagoodboy7935 Před 3 lety

    how did you create the "Calendar table"?

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  Před 3 lety

      Power Pivot window > Design tab > Date Table

    • @tobiisagoodboy7935
      @tobiisagoodboy7935 Před 3 lety

      @@MyOnlineTrainingHub yes thanks. but i was referring to your dimension table. how did you create that?

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  Před 3 lety

      Using the steps in my previous reply. i.e. the Date Table button you'll find on the Design tab of the ribbon in the Power Pivot window.

    • @tobiisagoodboy7935
      @tobiisagoodboy7935 Před 3 lety +1

      @@MyOnlineTrainingHub oh wow. got it now. thank you very much.

  • @danushairan
    @danushairan Před 3 měsíci

    I tried to adjust your way for variables and it does not work :(

  • @regihamp0206
    @regihamp0206 Před 2 měsíci

    How do you know all this stuff...OMG, thank you.

  • @PaulRichards1
    @PaulRichards1 Před 2 lety

    This is great work. Interested in a job?

  • @grahamparker7729
    @grahamparker7729 Před 3 lety

    👏🏻👏🏻👏🏻

  • @zabrus24
    @zabrus24 Před 3 lety

    👍🏻

  • @physicsmostafa1774
    @physicsmostafa1774 Před rokem

    hi,
    I want to make a RunningTotal using Pivot table, i've the following data:
    id Customer item SalesAmount
    1 Global inc apple 50
    2 Americana banana 10
    3 Americana apple 100
    4 Americana apple 60
    5 Global inc apple 10
    it's a very simple pivot table with the "id" field in the Rows section, and the "item" in the Filters section, and the "SalesAmount" in the Values section,
    i set the "Show Value As" of the SalesAmount column "Value Filed settings" to "Running Total in" and set the Base Field to "id" and it works fine,
    but i also want to show the customer, so i add this field to the Rows section after the "id" Field but as soon as i do this the running total column becomes distorted, as if the summing process reset when the customer change, or Excel auto group the data according to the customer despite that i set the Base Field of the running total column to id.

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  Před rokem

      Please post your question and sample Excel file on our forum where we can help you further: www.myonlinetraininghub.com/excel-forum

  • @IvanCortinas_ES
    @IvanCortinas_ES Před 3 lety

    Fine, but it would be appropriate to have the working file to be able to work with the data.

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  Před 3 lety +1

      If you watched to the end you'd have seen the file download link ;-) I've also put it in the description now.

  • @SuzukiKid400
    @SuzukiKid400 Před 2 lety

    This is so convoluted. Why didn't Excel just make this a feature? This is the way that running totals should be displayed!

  • @sureshvenkatesh886
    @sureshvenkatesh886 Před rokem

    Grand total in pivot table is always wrong why

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  Před rokem

      It's not always wrong, so there must be something specific to your scenario. Please post your question and sample Excel file on our forum where we can help you further: www.myonlinetraininghub.com/excel-forum

  • @davidgray5764
    @davidgray5764 Před 6 měsíci

    It’s a great video, but I can’t believe that something so basic and simple as a running total in Excel is so complicated. There is no way an average user would know how to write that measure, I expect everyone that watches this video copies it from your video.

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  Před 6 měsíci

      I agree, it does seem overly complicated for something so commonly required.

  • @victorsamgichuhi2486
    @victorsamgichuhi2486 Před 7 měsíci

    Thank you @MyndaTreacy