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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.