SSAS - Return dates where no data exists

三世轮回 提交于 2019-12-12 05:15:40

问题


How, in SQL Server Analysis Services, how can I return rows of data for dates where no data exists? In this instance, ideally, I'd want to return the value of 0. In plain SQL, I would do this with a CTE. However, I'm still figuring out SSAS.


回答1:


Right-click on your PivotTable and choose PivotTable Options. Select the tab labeled "Display". There is an option called "Show items with no data in rows". Put a check mark by that one.

If you prefer zero then on the Layout & Format tab of that same dialog set "For empty cells show" to 0.



来源:https://stackoverflow.com/questions/35610370/ssas-return-dates-where-no-data-exists

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