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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
KaroRoza
Helper I
Helper I

MoM% how to remove last month

Hello,

I try to caclucate MoM % change. I am getting data for following month which I do not want to display. For this month, I do not want to see Nov line ( in yellow). I have data loaded in Excel "CostingRun" for each product I have PVC on monthy basis : "ValidFrom" - 01/xx/xxxx. 

My formulas are:

PM PVC = CALCULATE(AVERAGE(CostingRun[PVC]),DATEADD(CostingRun[Valid from].[Date],-1,MONTH))
MoM % = DIVIDE(AVERAGE(CostingRun[PVC])-[PM PVC],[PM PVC])
 
Please help me how to do not dispaly last 'artificial' month in the table?

 

KaroRoza_0-1730373490969.png

Many thanks,

Karolina

1 ACCEPTED SOLUTION

hi @KaroRoza ,

 

change the other measure as well to:

PM PVC = 
IF(
AVERAGE(CostingRun[PVC]) =BLANK(),
BLANK(),
CALCULATE(AVERAGE(CostingRun[PVC]),DATEADD(CostingRun[Valid from].[Date],-1,MONTH))
)

View solution in original post

7 REPLIES 7
KaroRoza
Helper I
Helper I

@FreemanZ thank you very much.

johnt75
Super User
Super User

You could create a column on your date table like

Today or Before = 'Date'[Date] <= TODAY()

and use that as a filter on your visuals.

hi @johnt75 

it doesn't work. I have data loaded in excel on monthy basis, with the last data 01.10.2024. In next week I will have next month data added with 01.11.2024.

 

KaroRoza_1-1730374623035.png

 

It should work if you select "True". November 2024 should then disappear.

FreemanZ
Super User
Super User

hi @KaroRoza ,

 

try like:

MoM %= 

IF(

   AVERAGE(CostingRun[PVC])=BLANK(),

   BLANK(),

DIVIDE(AVERAGE(CostingRun[PVC])-[PM PVC],[PM PVC])

)

hi @FreemanZ 

I applied it to "MoM% 2" and it doesnt help. I still have November as Power Bi caclulcated data for October ( which is -1 Month in my data).

 

KaroRoza_0-1730374525648.png

 

hi @KaroRoza ,

 

change the other measure as well to:

PM PVC = 
IF(
AVERAGE(CostingRun[PVC]) =BLANK(),
BLANK(),
CALCULATE(AVERAGE(CostingRun[PVC]),DATEADD(CostingRun[Valid from].[Date],-1,MONTH))
)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Users online (8,634)