Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
If I do 'Last 4 days), I would get fridays data, which would be correct.
Solved! Go to Solution.
Hi @amandabus21 ,
I created a sample data to help you with your problem.
Sample data:
Add new measures:
Workdays = WEEKDAY(SELECTEDVALUE('Table'[Date]),2)
Salestotal =
CALCULATE(SUM('Table'[Sales]),FILTER('Table','Table'[Workdays]<=5))
Final output:
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.
Hi @amandabus21 ,
I created a sample data to help you with your problem.
Sample data:
Add new measures:
Workdays = WEEKDAY(SELECTEDVALUE('Table'[Date]),2)
Salestotal =
CALCULATE(SUM('Table'[Sales]),FILTER('Table','Table'[Workdays]<=5))
Final output:
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.
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
10 | |
6 |