Show the initial balance for any date selection in Power BI - Unplugged #48

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 พ.ย. 2024

ความคิดเห็น • 41

  • @aliaziz4114
    @aliaziz4114 ปีที่แล้ว +3

    Thanks.. you don't give solution of one problem, you give concept how to solve problem. you are Legend

  • @jorstube
    @jorstube ปีที่แล้ว +3

    Amazing solution; we enjoy Dax when Alberto and Marco teach us in Sqlbi; thank you so much

  • @gurbirsinghbhatia8411
    @gurbirsinghbhatia8411 ปีที่แล้ว +2

    This is a great Solution... I have little different requirement than this, where I have a GL Transaction Table and I am doing data Selection basis Posting Date. What is required is a New measure in GL Table where I can have Opening Balance which should be sum of all amount prior to start posting date selection. If I check opening balance at document number level then opening balance will be zero but if I do want to check at Account Level or higher up in the heirarchy then Opening balance will come.. The Problem is should happen post the selection done by the user through slicers and based on the selection opening balance is to be calculated

  • @davidirias3459
    @davidirias3459 ปีที่แล้ว +1

    always is a great pleasure to learn from you both, Alberto and Marco. a Master piece!

  • @phuongmy1965
    @phuongmy1965 8 หลายเดือนก่อน +1

    Fantastic Tutorial. I had some problems while practising such as My date value is not zero but sometime in 1899, the Opening Balance row disapeared, the slicer woudn't get changed ect... but in the end, everything is ok. It's so satisfied. Thanks a lot.

  • @babkenhakobyan6847
    @babkenhakobyan6847 2 หลายเดือนก่อน +1

    Very interesting and insightful, as always.

  • @TessFan-td1mj
    @TessFan-td1mj ปีที่แล้ว +1

    Nice solution! Always enjoying your unplugged video!

  • @aqsasaleem7768
    @aqsasaleem7768 10 หลายเดือนก่อน +2

    This is very interesting but how can we make it date wise instead yearly? I have to add the same opening balance in my account statement where i am calculating running balance for different transactions happens on different dates. and i have a date slicer for date selection.

  • @gregoryoliveira8358
    @gregoryoliveira8358 ปีที่แล้ว +1

    This video inspired to solve a problem in a completely different scenario! Thanks a lot! :-)

  • @SylvainD74
    @SylvainD74 ปีที่แล้ว +3

    Thank you very much for this great and very instructive video. I'm trying to calculate the opening balance account at a starting date but it always returns blank because the underlying table is obviously filtered out from that starting date. I don't know see in your video how did you solve that... Is it possible to have the PBIX file? Thanks.

    • @SQLBI
      @SQLBI  ปีที่แล้ว +1

      You can download the sample file by using the link in the Description.

    • @SylvainD74
      @SylvainD74 ปีที่แล้ว

      @@SQLBI Thank you very much!

  • @vasilikitsioni1739
    @vasilikitsioni1739 10 หลายเดือนก่อน +1

    Really great prsentation even for brginners. Is there any other presentation on how to add also a column with the running Total?

    • @SQLBI
      @SQLBI  10 หลายเดือนก่อน

      See www.sqlbi.com/articles/computing-running-totals-in-dax/

  • @Robinki-eo7nc
    @Robinki-eo7nc ปีที่แล้ว +1

    Thx for a super interesting video,
    How would we get a opening balance for every period shown in the table.
    The result that I am looking for is a rolling balance. Basically to add the balance for a month to the next month's sum.
    Kind Regards
    Robin

  • @jpieroen
    @jpieroen ปีที่แล้ว +2

    A very interesting way to wrangle the output to a specific user requests. A good thought experiment, but I would certainly try to convince my users to implement this a different way to avoid DAX-complexities. :)
    One potential issue I see is how the grand total is detected.
    VAR IsGrandTotal = COUNTROWS( 'Date' ) = CALCULATE( COUNTROWS ( 'Date' ), ALLSELECTED( ) )
    This would only work if there is more then 1 item on the rows. For example, if only the month Januari-2023 was selected / existed in the date table it would display the closing balance instead of the sales.

    • @SQLBI
      @SQLBI  ปีที่แล้ว

      Good point. If you have a small number of columns visible, consider using ISFILTERED and check whether the columns that go in more details are (not) selected.

  • @michaeldavidson7
    @michaeldavidson7 ปีที่แล้ว +1

    Great walkthrough. Very helpful. Thank you!

  • @Bharath_PBI
    @Bharath_PBI ปีที่แล้ว +1

    Great! Thank you 👍. Similar to what we do to show top n and others row.

  • @JustRandomExplorer
    @JustRandomExplorer ปีที่แล้ว +1

    Interesting task to solve and great hands on solution. Thanks!

  • @Anthony_Lecoq
    @Anthony_Lecoq ปีที่แล้ว +1

    Brillant Alberto ! Thanks för those greay unpluged video ;)

  • @mohammedmanna3488
    @mohammedmanna3488 ปีที่แล้ว +1

    great and effective video as usual

  • @DIGITAL_COOKING
    @DIGITAL_COOKING ปีที่แล้ว

    I think it's helpful in some cases of accounting domain! Am I right?

  • @chickenman7252
    @chickenman7252 ปีที่แล้ว +1

    For the grand total it might be easier to add one more row with ending balance with the value 999999999 and then remove subtotals. On vacation, but I'll report back with results next week.

  • @Leo_Samuel
    @Leo_Samuel ปีที่แล้ว +2

    Very very interesting 💫

  • @kymlove2006
    @kymlove2006 7 หลายเดือนก่อน

    how would I apply this concept to the previous day?

  • @barttrudeau9237
    @barttrudeau9237 ปีที่แล้ว +1

    Absolutely brilliant

  • @iamdon7920
    @iamdon7920 ปีที่แล้ว

    Hi SQLBI

    I have a task were I have 4 financial years, it starts July and end June. Now I want to be able to compare any financial year sales against each other. Now let's saying I'm comparing the current 2023 FY with 2020 FY to date, my current FY has data from July until may 3, I want to be able to compare 2023 FY until 3 may, same thing should happen to FY 2020,it should pick date until 3 may 2020.

    How do I do that?

    • @SQLBI
      @SQLBI  ปีที่แล้ว

      Check these patterns: www.daxpatterns.com/time-patterns/

  • @pelagiamarszaek5372
    @pelagiamarszaek5372 หลายเดือนก่อน

    How can I make it with fixed balance refers to previous years ?

  • @derpasaurus155
    @derpasaurus155 6 หลายเดือนก่อน +1

    Great video! Keep it up!

  • @NoShadowOfDoubt1
    @NoShadowOfDoubt1 ปีที่แล้ว +1

    Beautiful!

  • @kamutiub
    @kamutiub ปีที่แล้ว

    nice..but is it possible to make the "Opening balance" word and values in BOLD?

    • @SQLBI
      @SQLBI  ปีที่แล้ว +1

      You can use special unicode characters, just try copy & paste from sites like that: yaytext.com/bold-italic

  • @tanngohoangquoc9526
    @tanngohoangquoc9526 ปีที่แล้ว +1

    Thanks for your video.

  • @tomr9969
    @tomr9969 ปีที่แล้ว

    I struggle with the complexity of this. While it is not in its own row, does this also provide the same result although in a less complex form?
    Initial Balance =
    VAR SelectedDate = MAX('Table1'[Date])
    RETURN
    CALCULATE(
    SUM('Table1'[Trans_Value]),
    FILTER(
    ALL('Table1'),
    'Table1'[Date] < SelectedDate
    )
    )

    • @SQLBI
      @SQLBI  ปีที่แล้ว +1

      The challenge is just to create a specific row for that value instead of a measure that appears in separate columns.

  • @ahmetyildirim7268
    @ahmetyildirim7268 ปีที่แล้ว +1

    Wonderful.

  • @dutch-man
    @dutch-man ปีที่แล้ว +1

    Awesome!

  • @rogeriodornellas2115
    @rogeriodornellas2115 ปีที่แล้ว +1

    Muito bom! Great😎