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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Value of previous row with discontinuous dates (on the same row)

Hi

 

I have a simple Sales table connected to a Calendar table. The Sales table has a "Paiement Date" column connected to the Calendar table.

 

I have a matrix displaying Years/Months Name with the Total Sales for each Month (a simple sum!).

 

I'm looking how to retrieve at each Month visible row the value of the previous know under the following constraints:

 

  • The Months are discontinuous (sometimes no sales during 3-4 months)
  • No new rows should appear when adding the DAX measure as a new column in the matrix

Thanks for your help.

2 REPLIES 2
Anonymous
Not applicable

Hello try to use calculate([your measure],previousmonth([date])

Anonymous
Not applicable

Because the Months are discontinuous your solution doesn't work as it adds new rows (doesn't satisfy my constraint #2).

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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