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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Heatmizer3791
New Member

Add Yesterday's date to my table for use as a dynamic filter.

I have a table built for using aS dynamic filter showing the previous month, and year by using the PREVIOUSMONTH AND PREVIOUSYEAR functions.  It works perfectly.  However, I cannot seem to get the syntax correct for creating an option for PREVIOUS DAY.    

 

Heatmizer3791_1-1673644216484.png

 

 

 

 

 
3 REPLIES 3
Anonymous
Not applicable

Hi @Heatmizer3791 ,

 

Please try this :

ADDCOLUMNS(PREVIOUSDAY(DATESMTD('Plant Teardown Data'[Teardown_Date])),"Type","Last Day")

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

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

lbendlin
Super User
Super User

Since it is only a single date you would use ROW  rather than ADDCOLUMNS

 

ROW("Teardown_Date",TODAY()-1,"Type","Yesterday")

This approached worked.   Thank you!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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