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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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