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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors