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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
ruta
Frequent Visitor

undefined

Hi all,

 

I am having trouble filtering out biggest (most recent date). What I need to do is quite simple: I have columns : Debt and Date. I want to add the debt column after filtering it by date columnm, so it only adds the numbers (debt) of the most recent month. 

 

I  tried to do it in a following way:

1) 

LatestMonthBD = IF('as of 6 30 2019'[As of date] = max([As of Date].[MonthNo]), 'As of 6 30 2019'[Bad Debt Reserve (USD)], 0)
2) Adding a measure sum(latestMonthBD)
 
However, the IF does not work because it returns 0 for all months. Any idea why? Or how I could do it alternatively? I will also need a second to largest day( aka previous month) sum, not sure how to filter it out either.
 
Any help is appreciated
 
Cheers,
 
Ruta
1 REPLY 1
Anonymous
Not applicable

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.