|
Italians在他们《Analyzing Data with Power BI and PowerPivot for Excel》一书第8章对多对多关系作了详尽论述,他们总结使用三种主要模式来管理多对多关系,它们是:双向关系、CROSSFILTER函数及表扩展。表扩展一词(英文是expanded table or table expansion,当然中文用扩展表应该也是可以的)在这一章中多有出现;最近Italians官网上也有两篇相关博客文章探讨表扩展这一概念在数据建模实操中的重要作用。这次就阅读《Analyzing Data with Power BI and PowerPivot for Excel》一书的机会又专门翻阅两位的经典著作《The Definitive Guide to DAX》中有关表扩展的章节认真学习。其实在《The Definitive Guide to DAX》一书中Italians分别用到expanded table和table expansion来论述所谓表扩展概念,看来此概念如何用一个特定词汇表述在DAX中并未最终确定,不知中文现在有没有相关话题的讨论。借此次阅读Italians著作将《The Definitive Guide to DAX》中的有关表扩展的章节编译成中文,我会分享给大家望对学习DAX的网友有所帮助。
表扩展之所以重要,我们用Italians在《The Definitive Guide to DAX》书中一句话来概括:“Expanded tables are a powerful tool to aid you in understanding the direction of filter context propagation. In fact, they are the real foundation of the theory of filter context propagation in DAX.”,其中文意思是:“表扩展是一个强大的工具,可帮助你理解筛选上下文传递的方向。实际上,它们才是DAX筛选上下文传递理论的真正基础。” |
|