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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
BurgerBI
New Member

Card visual last value with date slider filters

Hi All,

 

Appreciate your help.

 

This is my dataset

 

DateNo. of Customers
01/01/20241000
02/01/20241500
03/01/20242000
04/01/20242500
05/01/20243000
06/01/20243500
07/01/20244000
08/01/20244500
09/01/20245000

 

I'm using the date slider filter. 

 

I want to use a card visual to show the last date value. In other words, if the date slider filter is set between 05/01/2024 - 07/01/2024, the card visual should show 4000. if it's set 01/01/2024 - 04/01/2024, the card visual should show 2500.

 

I've tried, CALCULATE(MAX(No. of Customers), Date = MAX(Date[Date])) and CALCULATE(MAX(No. of Customers), LASTDATE(Date[Date])). Both still shows the latest value which is 5000, regardless of what the date slider is set to.

 

Thanks for your help. 🙏

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @BurgerBI 

 

Did you create a measure rather than a new column with the formula? This should work with a measure. If it's a column, it won't work. 

vjingzhanmsft_0-1711604721701.png

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @BurgerBI 

 

Did you create a measure rather than a new column with the formula? This should work with a measure. If it's a column, it won't work. 

vjingzhanmsft_0-1711604721701.png

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors