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
Niels_T
Post Patron
Post Patron

Last Month DAX not working in Appended table

Hello,

 

I have a Last Month DAX that goes as followed:

 

Last Month Local Currency Amount = CALCULATE(SUM('xxxxNV$Sales Invoice + Cr_Memo Line'[Local Currency Amount]),PREVIOUSMONTH('Calendar'[Date]))
 
This DAX loads but it doesn't give me any results in my appended table.
 
In the non-appended tables it does work and it does give me results. The DAX is similar:
 
Last Month Local Currency Amount = CALCULATE(SUM('xxxxNV$Sales Invoice Line'[Local Currency Amount]),PREVIOUSMONTH('Calendar'[Date]))
 
I first thought that the problem is caused by Local Currency Amount (which is also a DAX column), but I also tested it with a non-DAX measure field and it still doesn't work in my appended table.
 
Could it be that it is because of the fact that it is an appended table?
 
My 2 appended tables contains:
Table 1: Invoice Lines and Credit Memo Lines
Table 2: Invoice Header and Credit Memo Header
 
image.png
 
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Niels_T , there can few reasons. First, make sure it is a measure. Calendar table is marked as Date table.

Also, make some date is selected on-page OR calendar ends on the current month

 

refer why TI fails https://www.youtube.com/watch?v=OBf0rjpp5Hw

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Niels_T , there can few reasons. First, make sure it is a measure. Calendar table is marked as Date table.

Also, make some date is selected on-page OR calendar ends on the current month

 

refer why TI fails https://www.youtube.com/watch?v=OBf0rjpp5Hw

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Switching from column to measure fixed the problem. Thanks!

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.