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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.