问题
I have a burn down chart for our VS Team Services project in Power BI - so that we can report on story points and not effort remaining.
In the chart, I have Date on the X axis. Is there a way to filter out weekend dates from the chart? There is no activity on the weekend.
I found this forum post, however I didn't understand how to add this to our report.
回答1:
Do you have 'day of week' column in your dataset ? If yes, then you can simply add a Report / Page level filter and exclude Saturday and Sunday from the Report...
回答2:
One way of achieving this:
Add a calculated column of form
IsWeekend = IF(WEEKDAY(Table1[date])>5,1,0)
Filter your visual by
IsWeekend is 0
Go to visual format (brush icon) -> X-Axis -> Scale Type -> Type -> Categorical.
来源:https://stackoverflow.com/questions/40335558/exclude-weekends-in-powerbi-report