cancel
Showing results for
Did you mean:
Helper II

## 12 month sum in a matrix table

Dear All,

I would like to ask for your support. What I am trying to do is to create a table where I will be to sum of the last 12 Months.

I could achieve that by creating the below:

The only problem is that then on my table it includes all the months of 2020.
How could I stop it and show just the till the last month on my calendar?

let me know in case you need any further explanations.

Cheers,

Paris
1 ACCEPTED SOLUTION
Community Support

hi  @ppatris

From your formula we could know that you are using built-in date hierarchy of power bi for calculation.

So for your case, you could add a new measure as below:

``Measure = IF(ISBLANK(MAX('Dates EDM'[Date])),BLANK(),[12m rolling])``

Result:

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
4 REPLIES 4
Community Support

hi  @ppatris

From your formula we could know that you are using built-in date hierarchy of power bi for calculation.

So for your case, you could add a new measure as below:

``Measure = IF(ISBLANK(MAX('Dates EDM'[Date])),BLANK(),[12m rolling])``

Result:

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Helper II

@v-lili6-msft  thank you very much it worked perfectly! 🙂

Super User

@ppatris   have you tried using a data slicer and limiting the range?   what exactly are you trying to do?

If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!

Helper II

@vanessafvg Hi Vanessa,

There are no dates furtherly than Jan-2020 into my calendar. The reason why i see more dates is because it sums 12 months before. That means that on December 2020 it will find the info of Jan-20 and it will show it.