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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.