Exclude weekends in PowerBI report?

左心房为你撑大大i 提交于 2019-12-24 06:41:07

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!