Forum Discussion

Elice's avatar
Elice
Frequent Visitor
7 years ago
Solved

Consolidate data for a time range

Hi,   I want to consolidate the amount of backlog from a time range, this formula should be dynamic.  Backlog from 3 months and earlier (from current month) should be summarized and backlog from 4...
  • sturlaws's avatar
    7 years ago

    Hi,

     

    you could make use of the Today-function, each time you refresh your model it will update the time ranges based on todays date.
    As you want to have this on the axis, you have to have these ranges as columns, you cannot handle this as a measure only. Two ways of doing it, you can add a calculated column in you data table(or date table, if you have one). Or you can have stand-alone table with the timeranges, and have measure that places the values in the correct time range.

     

    I have set up how you can do it in the data table. There is a couple of auxillary columns, which are not strictly necessary(all of them can be combined to one column in dax), but it makes it easier to see what happens.

    pbix-file

    cheers,
    Sturla