Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Microsoft Power BI Cookbook

You're reading from   Microsoft Power BI Cookbook Convert raw data into business insights with updated techniques, use cases, and best practices

Arrow left icon
Product type Paperback
Published in Jul 2024
Publisher Packt
ISBN-13 9781835464274
Length 598 pages
Edition 3rd Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Greg Deckler Greg Deckler
Author Profile Icon Greg Deckler
Greg Deckler
Brett Powell Brett Powell
Author Profile Icon Brett Powell
Brett Powell
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Preface 1. Installing and Licensing Power BI Tools 2. Accessing, Retrieving, and Transforming Data FREE CHAPTER 3. Building a Power BI Semantic Model 4. Authoring Power BI Reports 5. Working in the Power BI Service 6. Getting Serious About Date Intelligence 7. Parameterizing Power BI Solutions 8. Implementing Dynamic User-Based Visibility in Power BI 9. Applying Advanced Analytics and Custom Visuals 10. Enhancing and Optimizing Existing Power BI Solutions 11. Deploying and Distributing Power BI Content 12. Integrating Power BI with Other Applications 13. Working with Premium and Microsoft Fabric 14. Other Books You May Enjoy
15. Index

Leveraging the WINDOW Function

The DAX function WINDOW is a relatively recent addition to the DAX language along with similar and related functions—INDEX, OFFSET, ORDERBY, and PARTITIONBY. These functions were released as part of an effort to bring visual-level calculations to Power BI.

In this recipe, the WINDOW function is used to compute a rolling 3-month average as well as a running total.

Getting ready

To prepare for this recipe, follow these steps:

  1. Download Leveraging the WINDOW Function Start.pbix from the following GitHub repository: https://github.com/PacktPublishing/Power-BI-Cookbook-Third-Edition.
  2. Open Leveraging the WINDOW Function Start.pbix in Power BI Desktop.
  3. Edit the AdventureWorks query, and change the Source line to point to your SQL server with the AdventureWorksDW2022 database installed.
  4. Click Close & Apply from the ribbon of the Home tab.
  5. Save your work.

How to leverage the WINDOW function

...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image