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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Syndicate_Admin
Administrator
Administrator

Advanced date filter

Dear

I have built a model that I have as a date a day prior to today, but I need to be able to establish that the previous day is a working day or a working day. Currently I have been working in this way

RodriCP_0-1678797968276.png

I need to be able to filtar that if previous day is Sunday, show me the last working day

4 REPLIES 4
Syndicate_Admin
Administrator
Administrator

I give more details,

I have built a report that gives me sales data, which is filtered in such a way (relative date filter), that for example on Friday 17/03 when I open the panel, it shows me the data of the previous day (Thursday 16/03), up to that point I have no problems. The problem is presented to me when I want to review the information on Monday (Only movements are generated from Monday to Friday) and I want to review data from the last day worked

RodriCP_0-1679332526140.png

As a consideration, all the dates I bring from my calendar table

RodriCP_1-1679332722881.png


flip your question around.  Show transactional data from the maximum date that is not "today".  That means if the previous friday was a holiday then on monday you would see thursday data etc.  

That's right....... show data of the last working day or worked.

lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.