Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Create a variable in PowerBI with a filter

Hello Wonderful People Please can someone point out the error in my syntax because PB error message for syntax is useless (or me?).  Thank you in advance. test = Var test = CALCULATE( S...
  • Jayee's avatar
    3 years ago

    Hi Anonymous 

     

    After Retun need to specify variable or a calculation you want to return
    check the below measure

    test =

    Var test =

    CALCULATE(

    SUM('Payment Report Template'[Payment Amount]),

    FILTER('Payment Report Template','Payment Report Template'[Payment Type]="Practical Completion")

    )

    RETURN test

    If this post helps, then please consider Accept it as the solution, Appreciate your Kudos!!