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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

Apply filter on max date and show value of another column based on the filter

Hello,

 

I have a table which looks like shown below. in the last column i want to pull the value which will be the most recent value for column "Monthly_2020" which is "0.43" and the filter appled should be on "Max_Payment" to show most current value. please guide!

Max_PaymentTermed_MembersActive_FlagTotal_CountCumulativeMonthly_2020sum_of_cumulative_2020Cumulative_2020IndexMax_Monthly_2020
01/01/2020 0:00696Termed354746961.96%439761.58%1 
02/01/2020 0:00437Termed3506311331.25%439762.58%2 
03/01/2020 0:00342Termed3488314750.98%439763.35%3 
04/01/2020 0:00245Termed3504717200.70%439763.91%4 
05/01/2020 0:00163Termed3499418830.47%439764.28%5 

06/01/2020

0:00

149Termed3504520320.43%439764.62%6

 

 

 

1 ACCEPTED SOLUTION
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

v-lionel-msft_0-1597302687780.png

Filter = 
VAR x =  
CALCULATE(
    LASTDATE(Sheet2[Max_Payment]),
    ALL(Sheet2)
)
RETURN
IF(
    MAX(Sheet2[Max_Payment]) = x,
    1, 0
)

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

v-lionel-msft_0-1597302687780.png

Filter = 
VAR x =  
CALCULATE(
    LASTDATE(Sheet2[Max_Payment]),
    ALL(Sheet2)
)
RETURN
IF(
    MAX(Sheet2[Max_Payment]) = x,
    1, 0
)

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

amitchandak
Super User
Super User

@Anonymous , try like

calculates(lastnonblankvalue(Date[Date], max(Table[Monthly_2020])), datesmtd(date[date]))

 

allexcept is another alternative

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.