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