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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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]) )

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]) )

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.