Forum Discussion

shilpa288's avatar
shilpa288
Frequent Visitor
4 years ago
Solved

Opening Balance not working

Hi Guys,   I am having issue with opening balance dax function. I am using this calculation for opening balanace which is not working correctly. Open bal = CALCULATE( MAX(View_EventRec_Test3[C...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi shilpa288 ,

     

    According to your statement, I think first [OpenBal] is equal to 0 and other [OpenBal]s is calculated based on  [Clos_Bal].  [Clos_Bal] is calculated based on the [Clos_Bal] before. As far as I know , Power BI doesn't support us to calculate looping by Dax. I suggest you to calculate this by M code in Power Query.

    List.Generate() should work.  Here is a video about easying looping in Power Query.

     

    Best Regards,
    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.