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
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

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

Hello,

Thanks for help

Happy to help 🙂

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.