Forum Discussion

KarlNixon's avatar
KarlNixon
Icon for Advocate I rankAdvocate I
7 years ago
Solved

Date formula All values to a max date?

Is there a function to calculate all values up to a filtered date?   Something like    Total Qty quoted alltime = CALCULATE ( SUMX (quotation_data_tab,[Qty] ), FILTER ( ALL ( quotation_data_t...
  • v-frfei-msft's avatar
    v-frfei-msft
    7 years ago

    Hi KarlNixon,

     

    If there is relationship between data table and the fact tabel, once you choose any value in the slicer. Then the fact table will be filterd accrodingly. Then you cannot get the result as you want in the table visual. However for the value in the card, we can use ALL function to ignore the filer. So we can update the measure as below to work on it.

     

    Measure 2 = CALCULATE(SUM(Table1[qty]),FILTER(ALL(Table1),Table1[date]<=MAX('CALENDAR'[Date])))

    For more detaills, please check the pbix as attacched.

     

    Regards,

    Frank