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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
hb0135
Helper III
Helper III

How to get todays date on in filter for card

Hello,
I am having data shown below in that daily i put some value datewise and i ahve installed gateways to to auto refresh the power Bi report but  to get todays date value in card i need manually add the todays date and then publish the report can we di this automatically or with help DAX measures.

hb0135_0-1712198994959.png

hb0135_1-1712199033007.png

Thanks

 

BR

hb0135

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @hb0135 
Yes, if I understood you correctly, you can filter the card by the "last date" data.
You can use DAX function last nonblank value:

value_ = LASTNONBLANKVALUE('Table'[Date],sum('Table'[value]))
Ritaf1983_0-1712200844133.png

pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
Ritaf1983
Super User
Super User

Hi @hb0135 
Yes, if I understood you correctly, you can filter the card by the "last date" data.
You can use DAX function last nonblank value:

value_ = LASTNONBLANKVALUE('Table'[Date],sum('Table'[value]))
Ritaf1983_0-1712200844133.png

pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Hello,

Thanks for help

Happy to help 🙂

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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