Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi @happy16_2023 ,
Based on your description, I have created a simple sample:
Please try:
Measure =
CALCULATE (
AVERAGE ( 'Table'[Value] ),
FILTER (
ALL ( 'Table' ),
WEEKNUM ( 'Table'[Date] ) <= WEEKNUM ( MAX ( 'Table'[Date] ) )
&& WEEKNUM ( 'Table'[Date] )
>= WEEKNUM ( MAX ( 'Table'[Date] ) ) - 3
)
)
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @happy16_2023 ,
Based on your description, I have created a simple sample:
Please try:
Measure =
CALCULATE (
AVERAGE ( 'Table'[Value] ),
FILTER (
ALL ( 'Table' ),
WEEKNUM ( 'Table'[Date] ) <= WEEKNUM ( MAX ( 'Table'[Date] ) )
&& WEEKNUM ( 'Table'[Date] )
>= WEEKNUM ( MAX ( 'Table'[Date] ) ) - 3
)
)
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@happy16_2023 Rolling Weeks - Microsoft Power BI Community
User | Count |
---|---|
17 | |
14 | |
14 | |
13 | |
13 |
User | Count |
---|---|
19 | |
15 | |
15 | |
11 | |
10 |