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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
v-jingzhan-msft
Community Support
Community Support

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
v-jingzhan-msft
Community Support
Community Support

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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