Forum Discussion
Rolling Average Measure (with Parameter) - Trading Days Only
Hi all!
First off, thank you in advance for your help. For something that seems so easy, this one defintely threw me for a whirlwind because of PBI's time intelligence.
I have data I need to calculate rolling averages for EXCLUDING weekends/Holidays. See below for Data Table:
Next I have a date table to signify a "Working Day" where "Working Day" = 2 See below for Date Table:
Next, I have the dashboard piece of it where I am trying to get a parameter for rolling days that calculates the average of the last x number of days EXCLUDING weekends/holidays (this is where I have gone crazy trying to calculate this). Here's what it looks like:
The Dax for Rolling Average:
I tried filtering off that "Working Day" = 2 but had no luck.
Is there any way to exclude weekends/holidays for my rolling average calculation? What am I missing?
THANK YOU SO SO MUCH!!
9 Replies
- Ashish_Mathur
Super User
Hi,
I am not sure how much i can help but i would like to try. Can you share the download link of your PBI file.
- csrapp96
Helper I
Hi Ashish_Mathur, I have rebuilt the dataset to attempt to solve this
- Ashish_Mathur
Super User