Forum Discussion
Conditional Filter to use values from previous week based on week selected
I have a measure called Utilization that is used on a weekly report to represent resources utilization. But this the database is updated only on mondays, to represent the utilization from the past week.
I want to create a conditional filter that uses the previous week utilization based on the week select on the slicer.
Hi Anonymous
Try the Dax:Last week Utilization (%) = CALCULATE([Utilization (%) ],'Table'[weeknumber]=max('Table'[weeknumber])-1).If it does not workPlease 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/1447523If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
1 Reply
- Ritaf1983Super User
Hi Anonymous
Try the Dax:Last week Utilization (%) = CALCULATE([Utilization (%) ],'Table'[weeknumber]=max('Table'[weeknumber])-1).If it does not workPlease 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/1447523If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly