Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare 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
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
31 | |
15 | |
14 | |
13 | |
9 |