Forum Discussion

vjnvinod's avatar
vjnvinod
Icon for Impactful Individual rankImpactful Individual
6 years ago
Solved

Measure for Calculatng Revenue

hi,   I have a data with fields like below I need to calculate revenue for Region for one region, i was trying to do this in power query(like below) HQAsean Revenue= Table.SelectRows(#"Renamed C...
  • MFelix's avatar
    MFelix
    6 years ago

    Hi  vjnvinod ,

     

    You are correct I included every values in the calculation change the var to the following:

     

    var Delivery_Revenue = CALCULATE(SUM('Table'[TER_FYTD_USD]),filter(ALL('Table'[DeliveryRegion],'Table'[HQRegion]),'Table'[DeliveryRegion] = SELECTEDVALUE('Table 2'[HQRegion]) && 'Table'[HQRegion]<> SELECTEDVALUE('Table 2'[HQRegion]))))

    Should give expected result if not please tell me.