Forum Discussion

cristianml's avatar
cristianml
Post Prodigy
5 years ago

Count quantity of months based on value

Hi,

I need to count the quantity of months that I have to the end of the model.

 

This a measure that calcules a value based on the category. 

=CALCULATE(SUM(FT_Forecast[Amount]),FILTER(FT_Forecast,[Category]="Solution Contingency"))

 

There is another column with date and what I need is to calculate the remaining months that contains this value/measure.

 

Any ideas ?

 

Thanks !

2 Replies

    • cristianml's avatar
      cristianml
      Post Prodigy

      Hi edhans

       

      I hope this can help.:

       

      As you see here I need 3 Measures that can calculate:

      Count of months:  Count the quantity of months that contains amount in the category "Solution Contingency". In the example below we have only 5 months with amount of that category. 

      SC Last date:  Calculate the last month that contains amount in that category. Example > Feb 2021

      Last date: the last date of the model. Example > June 2021

       

       

      Thanks !