SQLBI 發布 PowerBI DAX 在線聖經

  • 2019 年 10 月 6 日
  • 筆記

XX聖經,是對XX學習資源至高無上的評價。

DAX聖經

只要您在用Excel PowerPivot或PowerBI來進行數據分析,不久就會發現要掌握這些工具的就必須掌握DAX。然後您很快就會發現在這方面的教學權威是兩位義大利的老師:SQLBI.com。 2015年,兩位義大利老師出版了《The Definitive Guide to DAX: Business intelligence with Microsoft Excel, SQL Server Analysis Services, and Power BI》,如下:

這本書的名字太長了,為了簡化稱呼同時標識出本書在DAX領域的地位,廣大中國愛好者不約而同的認可了一個名字《DAX聖經》。

2019年2月,將推出本書的第二版:

對於DAX重度愛好者來說,本書是必須參考,甚至也可以作為唯一參考。

DAX在線聖經

由於微軟對基於DAX引擎(準確講VertiPaq引擎)打造的產品的不斷發展以及市場的需要,已經有包括Excel,PowerBI,SSAS,Azure AS等在內的產品中全部運行著同樣的DAX引擎。但由於版本和差異不同,造成了很多麻煩,而且微軟官方其實並沒有給出很系統完善的DAX教程。

因此:整個業界需要一個關於DAX的終極參考。

原文參考:https://www.sqlbi.com/blog/marco/2018/09/19/dax-guide-the-reference-i-had-been-wanting/

If you have read the book Alberto and I wrote, 「The Definitive Guide to DAX」 then by looking at the title you might think that this post is about the book. Not this time. I am talking about the new great website we are launching today, to provide easier navigation within the DAX functions: DAX Guide (https://dax.guide). The feedback from our early users was enthusiastic, yet I do want to explain why we built this service.

如果您已經讀過《DAX聖經》,你也許會根據標題就覺得本文是和此書有關的。實際上,這是一個 關於DAX函數 的網站。

The short answer is simple: this is a tool that I myself had been wanting for years!

我們對此期待已久。

That short answer justifies a personal effort, but it』s not enough to convince other people to invest in it. The following aspects provide a fuller answer:

以下更詳細的說明下:

What is DAX Guide? 什麼是DAX Guide

DAX Guide is a website offering a complete reference to the DAX language. Every function is presented with its complete syntax, a short description, and links to related functions and articles.

DAX Guide是一個提供關於DAX語言完整參考的網站。每個函數都有完整的語法,簡短的描述,以及與之相關的函數和文章。

Is DAX Guide a tutorial to learn DAX? 這是用來學習DAX的嗎?

No, DAX Guide is not designed as a learning tool. The goal of DAX Guide is to provide a quick reference with accurate information. The only commitment is 「quality first」.

非也。DAX Guide的初衷不是一個教學工具。它的目標是提供 準確的 快速參考。唯一目標就是:準確性。

可見義大利老師深知市面上講述DAX的很多說法都是不準確的,所以特彆強調了「準確」一詞,這也是本網站的唯一核心目標。建議:您可以特別留意該網站對每一個DAX函數的解讀所用的英文單詞,由於準確性的要求,你會發現很多英文描述你一開始無法理解,但隨著使用的加深,你會慢慢體會到其含義。

What are some unique features of DAX Guide? 它有何與眾不同

DAX Guide is updated automatically through the monitoring of new versions of Microsoft products. Every DAX function comes with a compatibility matrix describing in which Microsoft products and versions the function may be available. Additional attributes highlight which functions perform a context transition, which arguments are executed within a row context, and which functions are obsolete or deprecated – in our opinion. DAX Guide 通過監測微軟產品的最新版本來自動更新。每個DAX函數都配有一個兼容性矩陣用來描述可以在哪個微軟產品的哪個版本下使用。在附加說明還會強調該函數是否會產生上下文轉換以及是否會在行上下文中執行,以及根據我們個人經驗判斷該函數是否已經過時或廢棄。

Who are the authors of DAX Guide? 它是誰創建的

In order to guarantee the desired level of quality, the content of DAX Guide is curated by a small number of authors. 為了保證品質,DAX Guide的策劃者們不多。

意思應該是核心編輯已經很少,以確保所有內容都經過嚴格審閱修訂。

Is it possible to submit additional content to DAX Guide? 可以提建議嗎

Yes. Please report any mistake found in DAX Guide using the CONTRIBUTE button available on every page. Suggestions are welcome too.

如果發現問題或有任何建議都可以隨時提出。

Although it took several months for the go-live to be ready, we feel that this is just a starting point. Over the last few months, we completed the validation of the additional attributes applied to 275 DAX functions, and we imported a basic description of each function from the MSDN documentation validating each statement included on DAX Guide. The MSDN documentation might be more complete, and you will typically find a link to the MSDN page if available. However, sometimes the MSDN documentation is inaccurate or obsolete – in those cases, we did not import the irrelevant content.

雖然這花費了數個月的時間,但才剛剛開始。在最近幾個月,我們為275個DAX函數增加了額外的描述,基本描述來自微軟MSDN文檔,而且也全部做了校對。MSDN文檔也許更全面,你可以通過鏈接直接查看到。然而,有的MSDN文檔的描述並不準確甚至可能已經廢棄,這種情況,就不再給出MSDN的引用。

DAX Guide is not a wiki, by design. The content is typed, organized, and it might be available as a service in the future.

DAX Guide的初衷並不是要做一個DAX wiki。裡面的內容都經過組織,未來可能作為一種服務。

I wanted a complete reference that would be easy to access, quick to navigate, with accurate information about context transition and row context for every DAX function. I had been wanting DAX Guide for a few years, and now that I finally got it, I』m super excited to share it with you.

我個人一直希望有一種很容易的方式可以找到關於每個DAX函數的上下文轉換以及行上下文的準確描述。我已經等DAX Guide多年了,現在終於有了,我迫不及待得分享給大家。

DAX 在線聖經使用方法

雖然 DAX Guide 的設計初衷並非是教學工具,但我們還是可以簡稱它為《DAX在線聖經》,它更像是一個 字典,所以也可以叫《DAX在線聖經字典》,這裡有關於所有DAX函數的準確描述。

首頁

英文看不懂怎麼辦

如果英文不是特別好,可以使用Google的Chrome瀏覽器自帶翻譯功能,如下:

雖然翻譯得不是特別準確,但大概還是可以理解的。在對照英文的情況下,基本可以使用了。

函數的組織

可以看出,這裡已經將函數進行了組織,方便大家查找所需要的內容。

如何學習函數

可以看出,這裡將函數的解讀劃分了幾個部分:

  1. 函數名稱
  2. 語法
  3. 參數
  4. 返回值
  5. 使用說明
  6. 相關文章
  7. 相關函數
  8. 最後編輯
  9. MSDN原文
  10. 兼容性
  11. 行上下文
  12. 返回類型

這裡特別標記了一些特點的部分,可以看出這個布局和功能板塊的設計相當用心,並鏈接了部落格文章,這無疑幫助我們整理了海量資料。

其他特色

細心的話,可以留意到在瀏覽器里的地址是有意義的,你可以直接輸入函數來查看,甚至不需要找。

另外,在貢獻者一欄,可以看出:

本函數最後更新於時間以及貢獻者。

存在的問題

如果你發現你打開有問題,是因為該網站使用了google字體導致中國的用戶在打開瀏覽器無法獲取google資源導致速度慢或鏈接點擊無效。解決方法,你懂的。

總結

兩位義大利老師從2009年開始從事基於微軟DAX引擎基礎的BI諮詢,已經10年了,我們看到了他們的用心,而且也讓我們廣大愛好者有了更多的資源和更正確的學習途徑,讓我們趕快一起學習吧。

歡迎交流

Tags: