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
amandabus21
Helper V
Helper V

Slicer question

Hello,

 

I'd like to use the Relative Date slicer on a page to give me the previous days (working day) data.

 

For example. I am trying to run this report on a Monday but if I do "Last 2 days", its blank from the weekend.

amandabus21_0-1718054098505.png

 

If I do 'Last 4 days), I would get fridays data, which would be correct.

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @amandabus21 ,

I created a sample data to help you with your problem.
Sample data:

vyifanwmsft_0-1718073707522.png

 

Add new measures:

Workdays = WEEKDAY(SELECTEDVALUE('Table'[Date]),2)
Salestotal = 
CALCULATE(SUM('Table'[Sales]),FILTER('Table','Table'[Workdays]<=5))

 

Final output:

vyifanwmsft_1-1718073786917.png

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

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

1 REPLY 1
Anonymous
Not applicable

Hi @amandabus21 ,

I created a sample data to help you with your problem.
Sample data:

vyifanwmsft_0-1718073707522.png

 

Add new measures:

Workdays = WEEKDAY(SELECTEDVALUE('Table'[Date]),2)
Salestotal = 
CALCULATE(SUM('Table'[Sales]),FILTER('Table','Table'[Workdays]<=5))

 

Final output:

vyifanwmsft_1-1718073786917.png

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

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

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.