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

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

Reply
Analitika
Post Prodigy
Post Prodigy

Show only last value without duplicates

I have Table1

OpNr  | ApNr | Sum | Date

123 | 456 | 300 | 2019-07-17
123 | 856 | 50 | 2019-08-07

 

Expected result

TotalSumByOpNr | MaxDate

350 | 2019-08-07

Total | 350 | empty (show no dates)

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

@Analitika 

you can do it eaisly in visualization pane set as Sum aggregate for Sum field and max for Date field

 

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Analitika ,

lastnonblankvalue(Table[Date], Sum(Table[Sum]))
max(Table[Date])

or

calculate(lastnonblankvalue(Table[Date], Sum(Table[Sum])), allexcept(Table[OpNr]))
calculate(max(Table[Date]), allexcept(Table[OpNr]))

 

to avoid GT

if(isfiltered(Table[OprNo]), max(Table[Date]), blank())

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

no one example does no work at all

az38
Community Champion
Community Champion

@Analitika 

you can do it eaisly in visualization pane set as Sum aggregate for Sum field and max for Date field

 

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
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.

Top Kudoed Authors