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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.