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
KG1
Resolver I
Resolver I

Filtering Issue with end of month

KG1_0-1671009961325.png

I have 2 measures

 

The first calculates the end of the month value

EOM =
CALCULATE(
    SUM('All Statuses'[INVOICE_LINE_AMOUNT]),
   ENDOFMONTH('All Statuses'[W/C]))
 

The second calculates the previous month value using the EOM Measure

 

End of previous month =
 CALCULATE([EOM],DATEADD('All Statuses'[W/C],-1,MONTH))
 
When I click on the bar graph the end of month value updates correctly but the previous month is blank
 
When the 2 measures are not filtered the values are correct
 
KG1_1-1671010818239.png

 

Can you please advise where I am going wrong?

 

Many Thanks

 

2 REPLIES 2
Mahesh0016
Super User
Super User

Current_Month_Price = CALCULATE(
    [Total ListPrice],
   ENDOFMONTH('Date'[Date]))
 
previous month =
 CALCULATE([Current_Month_Price],DATEADD('Date'[Date],-1,MONTH))
 
Hello @KG1 ,
You should change the fact date column with daimation date[date] table.
try it , i hope it will work fine.
 

Hi
 
Have done this and the date table is marked as a date table
 
When I drag the measure into a card the value is blank
 
It is also picking up the end of October value when it should be the end of November
 
This means the previous month measure isn't working because the data only goes back to October
 
KG1_0-1671027075422.png

 Thank you

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.