Nick Lee from Pragmatic Works shares his favorite Power BI tips and tricks for writing DAX (Data Analysis Expressions). In this tutorial, he focuses on practical shortcuts and quality-of-life improvements to make working with DAX more efficient and enjoyable.
Nick’s video is not about teaching DAX concepts like filter context or row context but instead focuses on how to streamline the process of writing and managing DAX formulas in Power BI. Whether you’re new to DAX or a seasoned pro, these tricks can enhance your workflow.
If you find the formula bar too small to read, you can adjust the font size in Power BI by:
This improves readability, especially for users working on smaller monitors or staring at screens for extended periods.
When typing a DAX function, pressing Tab after typing the function name not only completes it but also adds necessary parentheses. This reduces the chance of syntax errors.
Sometimes the Intellisense dropdown can obstruct your view while typing. Press Esc to hide it temporarily, allowing you to see what’s behind the popup.
Nick emphasizes best practices for referencing tables and columns in DAX:
When selecting columns, use the draggable gray box to expand dropdown menus if the list is too long to view at once.
Comments are essential for documenting and debugging DAX formulas. In DAX, you can:
// for single-line comments./* */ for multi-line comments.Nick demonstrates how to quickly add or remove comments across multiple lines using Ctrl + / or Ctrl + K + C (to comment) and Ctrl + K + U (to uncomment).
To edit multiple lines at once:
This is particularly useful for creating repetitive logic, such as switch statements or conditional expressions.
Nick highlights other useful shortcuts to speed up your workflow:
Nick demonstrates debugging techniques, such as commenting out specific parts of a formula to test isolated logic. These practices ensure accuracy and make troubleshooting easier.
Nick concludes by emphasizing that these tips and tricks are designed to improve the quality of life when working with DAX. While they may not be groundbreaking, they save time, reduce frustration, and make writing formulas smoother. For more in-depth training on Power BI and DAX, Pragmatic Works offers comprehensive courses and mentoring services.
Don't forget to check out the Pragmatic Works' on-demand learning platform for more insightful content and training sessions on Power BI and other Microsoft applications. Be sure to subscribe to the Pragmatic Works YouTube channel to stay up-to-date on the latest tips and tricks.