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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
gp10
Advocate III
Advocate III

Show text on Card visual with Latest Date when nothing is selected

I want to have a card where I will show the latest date of a dataset refresh when a report name is selected. And I would like to show a text message like "Last Refresh" when nothing is selected.

I have 2 connected tables one for Reports where I have the reports and their dataset IDs, and one for Last Refresh with the dataset IDs and their latest refresh date.

If I just drop the Latest Refresh column in a card visual and select to show the latest date I get the correct result. But when no report is selected I still see a date there and I would like a text.

Any thoughts? Thanks.
The usual measures with IF condition and Hasonevalue and SelectedValue doesn't seem to work.

3 ACCEPTED SOLUTIONS
PaulDBrown
Community Champion
Community Champion

Try:
Last Refresh = IF(ISFILTERED(SlicerTable), MAX(Table[LastRefreshColumn]), "Last Refresh")





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

PaulDBrown
Community Champion
Community Champion

Try:
Last Refresh =
VAR MX = CALCULATE(MAX(Table[LastRefreshColumn]), ALL(Table)
RETURN
IF(ISFILTERED(SlicerTable), MX, "Last Refresh")





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

Regarding the  #,0.00 part, I needed to change the measure format from General to Whole or Decimal number.

View solution in original post

8 REPLIES 8
PaulDBrown
Community Champion
Community Champion

Try something along the lines of:

Last Refresh =IF(ISFILTERED(SlicerTable), LASTDATE(Table[LastRefreshColumn]), "Last Refresh")





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Unfortunatelly @PaulDBrown I cant use the LASTDATE function because my LastRefreshColumn has duplicate dates and I'm getting an error message.

PaulDBrown
Community Champion
Community Champion

Try:
Last Refresh = IF(ISFILTERED(SlicerTable), MAX(Table[LastRefreshColumn]), "Last Refresh")





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






My bad @PaulDBrown , I should have mentioned that I tried the MAX instead of LASTDATE but it returns this #,0.00 for every selection.
I have tried this with both Date and Date/Time columns and I get the same result.

Regarding the  #,0.00 part, I needed to change the measure format from General to Whole or Decimal number.

PaulDBrown
Community Champion
Community Champion

Try:
Last Refresh =
VAR MX = CALCULATE(MAX(Table[LastRefreshColumn]), ALL(Table)
RETURN
IF(ISFILTERED(SlicerTable), MX, "Last Refresh")





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






PaulDBrown
Community Champion
Community Champion

How are you "selecting" a report?





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Hi @PaulDBrown ,
by a slicer and a table visual.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors