Forum Discussion

jagdeep's avatar
jagdeep
Regular Visitor
7 years ago
Solved

applying calculated field when filtering

Hi there,   I have 2 calculated columns and 1 calculated measure.   When I don't apply any filters to the data, the calculations all work correctly - however, when I filter the data to a particul...
  • v-frfei-msft's avatar
    v-frfei-msft
    7 years ago

    Hi jagdeep,

     

    I made one sample for your reference. We can create measures to work on it.

     

    Sales% new = CALCULATE(SUM('Relative Index'[Sales]))/CALCULATE(SUM('Relative Index'[Sales]),ALLSELECTED('Relative Index'))
    Population% new = CALCULATE(SUM('Relative Index'[Population])/CALCULATE(SUM('Relative Index'[Population]),ALLSELECTED('Relative Index')))
    RI NEW = [Sales% new]/[Population% new]

     

    For more details, please check the pbix as attached.

     

    Regards,

    Frank