Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
ladislaocsulak
Frequent Visitor

issue on month over month variation metric when using day filter

Hello,

 

I am having the following problem that I cannot solve.

 

I made a chart with bars and lines where the lines show the metric sales MoM that displays the month-over-month variation. Additionally, with a calendar table, I am using a slicer that filters by day to compare sales within a certain range of days.

 

Everything works perfectly, except for the following specific case that I cannot solve.

In the table I am uploading, the last recorded day is 5/5/23. If I filter to see the information for days 1 to 4, the metrics work perfectly. But if I filter to see the information for days greater than or equal to the last day recoded, it stops working (for example 1 to 5 or 1 to 8). Does anyone know what I can modify to make it work consistently?

 

I am uploading the Power BI file with the example and the metrics created:

https://drive.google.com/drive/folders/1SIBxFXl1CB3n0gnH2GM6CJe9044dHk_M?usp=share_link

 

Thank you very much in advance.

1 REPLY 1
ThxAlot
Super User
Super User

Follow this pattern

ThxAlot_0-1683357173285.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.