Forum Discussion

edcdcpowerbi's avatar
edcdcpowerbi
Icon for Helper I rankHelper I
4 years ago
Solved

Calculate with measures

  I am trying to create a measure which returns all 'ClientIDs' with a higher final score.  I have Two measures 'Initial Score' & 'Final Score, the DAX for them is below    CALCULATE(SUM('Clie...
  • amitchandak's avatar
    4 years ago

    edcdcpowerbi ,

     

    Try like

    CALCULATE( COUNTX(filter(values( 'Client'[ID]) , [Final Score] > [Initial Score] ), [Client ID] ))

     

    if needed add a filter in these two too

    CALCULATE(SUM('Client')'[Total Score]),filter('Client , 'Client[Stage] = "Final"))

    CALCULATE(SUM('Client')'[Total Score]),filter('Client , 'Client[Stage] = "Initial") )