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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
yk98
Frequent Visitor

How can I only show the latest accuracy number in a card visual?

Hi,

I am using the card visual in PBI desktop to display the latest testing accuracy of my model as shown in the table below:

yk98_0-1679915958007.png

 

The issue: I want the latest (date wise) accuracy to be shown in the viz based on the date button selection, so I don't want the test_acc to be aggregated in any way. 

yk98_1-1679916315112.png

If i select 11th Feb, I should get 94.15%, 14th Mar > 88.31%, 24th Mar> 89.54%. And when the select all button is toggled, I want the accuracy to remain 89.54% (because thats the accuracy as of 24th Mar).

 

How can I do this. Thanks in advance!!!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@yk98 ,

 

calculate(lastnonblankvalue(Table[Training_date], max(Table[Text_acc]) )

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

View solution in original post

2 REPLIES 2
yk98
Frequent Visitor

Thanks, this works!

amitchandak
Super User
Super User

@yk98 ,

 

calculate(lastnonblankvalue(Table[Training_date], max(Table[Text_acc]) )

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.