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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

How to restrict dates column to today's date

Hello,

 

I have the following table and i want to filter only the dates up until today's date. That is, every time the report is refreshed, it should only show all the rows in the table up to today's date. In other words, all the rows with the dates after today's date should be hidden.

 

Any help would be much appreciated!

 

DateStudent NameSubmissionsFeedback
03/01/2022Lizui42
06/01/2022Laufenburg75
11/01/2022Tegalpapak88
12/01/2022Ar Rabiyah56
22/01/2022Bellegarde38
21/01/2022Gangarampur33
25/02/2022Luntas11
26/02/2022Frei Paulo65
26/03/2022Seedorf21
03/04/2022Bellegarde34
05/04/2022Gangarampur37
11/04/2022Luntas12
09/05/2022Cosamaloapan de Carpio73
15/05/2022Zagrodno99

 

I placed the table above into a table visualization in Power BI, as shown below. I am also trying to show the title of that table as dynamic with the last date that the data was refreshed. How to do this?

 

MakeItReal_0-1646444541852.png

 

1 ACCEPTED SOLUTION
v-eqin-msft
Community Support
Community Support

Hi @Anonymous ,

 

1. Create a flag measure,And apply it to filter pane , set as "is 1":

Flag = IF(MAX('Table'[Date])<=TODAY(),1,0)

2. Create a measure for dynamic header, and apply it to Title Text field in General pane:

Dynamic header = "Date refreshed on "&TODAY() 

Final output:

Eyelyn9_0-1646729700218.png

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-eqin-msft
Community Support
Community Support

Hi @Anonymous ,

 

1. Create a flag measure,And apply it to filter pane , set as "is 1":

Flag = IF(MAX('Table'[Date])<=TODAY(),1,0)

2. Create a measure for dynamic header, and apply it to Title Text field in General pane:

Dynamic header = "Date refreshed on "&TODAY() 

Final output:

Eyelyn9_0-1646729700218.png

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

jianlong
Resolver I
Resolver I

Here is the link for showing refresh date/time. 

https://askgarth.com/blog/how-to-add-the-last-refreshed-date-and-time-to-a-power-bi-report/

 

You can use the refresh date/time as a benchmark, to select all the rows with time before this. 

Helpful resources

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.