cancel
Showing results for 
Search instead for 
Did you mean: 
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
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Top Solution Authors