I'm having trouble creating a measure that will display the total sales of the previous day minus weekends. The goal is if its a Monday that visual would show sales data for the previous Friday. If it's a Saturday or Sunday it still displays Friday.
I have already created a rolling calendar in PowerBI and adding a calculated column to that lists a 1 and 0 for it the date is a weekend or weekday.
The measure I have written display the previous day but I can't figure out how to filter so the previous day shown never is a weekend:
PreviousDaysSamples = CALCULATE([Total Samples], PREVIOUSDAY(Dates[Date.1]))
Any help would be great. I've looked and just haven't been able to find any solution yet.