The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 |
---|---|
26 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
28 | |
13 | |
12 | |
12 | |
6 |