Forum Discussion

ashapr's avatar
ashapr
Regular Visitor
4 years ago
Solved

Error in DAX function

I have written this DAX function but its not showing correct total.its showing 0 total but toal should be -6407667.   Cumulative Balance = IF ( [ShowValueForDates], SWITCH(SELECTEDVALUE(glaccounts[...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi ashapr ,

     

    I suggest you to try to create a new measure based on [Cumulative Balance] measure instead of sumx it directly.

    Cumulative Balance with correct subtotal =
    SUMX ( 'glentries', [Cumulative Balance] )

    If this reply still couldn't help you solve your problem, please share a sample file with me and show me the result you want. This will make it easier for me to find the solution.

     

    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.