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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.