Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>DAX for Power BINew to Visual Studio Code? Get it now.
DAX for Power BI

DAX for Power BI

jianfajun

|
58,438 installs
| (7) | Free
Power BI DAX syntax highlighting
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

DAX Language - Syntax Highlighting README

Add syntax highlighting for DAX language. The DAX syntax highlighting extension supports files with the .dax file extension. For more information about the DAX language, please refer to the official Microsoft Data Analysis Expressions (DAX) Reference.

为 DAX 语言添加语法高亮显示。DAX 语法高亮插件支持后缀是.dax 的文件。更多关于 DAX 语言的信息,请参考微软官方的数据分析表达式 (DAX) 参考。

Release Notes

Last update: 2025-03-18. Added metadata access functions and enhanced syntax highlighting.

最后更新日期:2025-03-18。新增元数据访问函数,增强语法高亮功能。

New Functions & Features

Metadata Access

INFO Series Functions: Over 60 new functions for metadata access including:

  • INFO.MODEL - Complete model information
  • INFO.TABLES, INFO.COLUMNS, INFO.RELATIONSHIPS - Schema metadata
  • INFO.VIEW.* series - View-related metadata

Additional Functions

  • NAMEOF: Gets the string name of model objects (tables, columns, measures) for use in field parameters
  • NATURALJOINUSAGE: Enhanced table relationship handling
  • SAMPLEAXISWITHLOCALMINMAX, SAMPLECARTESIANPOINTSBYCOVER: Data visualization sampling

Syntax Improvements

  • Added highlighting for numeric values
  • Support for SQL-style comments (--) along with traditional comments (//)

Snippet Improvements

Enhanced Function Descriptions: Snippets now include better structured function descriptions with the following format:

  • Function category (MATHTRIG, FILTER, INFO, etc.)
  • Visual calculation indicator (marked as VISUAL for visual calculation functions)
  • Detailed function description

Example: "MOVINGAVERAGE": "WINDOW | VISUAL | Calculates a moving average along the specified axis of the visual calculation data grid."

This improvement makes it easier to identify function categories and visual calculation functions at a glance.

DAX desc

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft