Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Tableau's WINDOW_SUM Equivalent in DAX

Hello everyone,

 

I am creating a report based on one done previously in Tableau.

 

There's a Net Sales Average calculation that uses Tableau's WINDOW_SUM functions to just get the 3 rows above the current and divide by three to get the running net sales average.

 

Here's what it looks like:

 

WINDOW_SUM(SUM([Net Sales]), -3,-1)/3

 

What would be the DAX equivalent to this function?

 

Thanks!

1 REPLY 1
ribisht17
Super User
Super User

@Anonymous 

 

Please check this post https://community.powerbi.com/t5/Desktop/Dax-Formula-Sum-Offset/m-p/236169

 

Thanks,

Ritesh

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors