Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi there everyone. I have a problem I have been trying to solve. I am a newbie so please bear with me
The problem involves writing baseline values as a Dax measure,
each week baseline should be based on the average hours of 3 weeks prior, such that it dynamically changes as time goes on.
I have the following sample table of work hours below:
Just a similar example of what I am trying to achieve in a visual form
I would appreciate any help I can get on this. Thank you all.
assume you mean there is another table with the static values.
easiest thing would be to join the two tables together.
you might have to tweak depending on how your data model is set up but this might give you a starting point.
mbaseline:=
var _MaxDate=MIN(Table1[date])
var _MinDate= _MaxDate-21
return
CALCULATE(AVERAGE(Table1[actual]),
FILTER(all(Table1[date]),
Table1[date]>_MinDate && Table1[date]<=_MaxDate
)
)
Hi there, Thanks for your input, and will try this out. Also, I would like to know how I can make an overall static baseline value for each location so that it remains unaffected by the date value changes.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
10 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
13 | |
12 | |
11 | |
9 |