Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
pallavinegi
Frequent Visitor

Minimize the formula

 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @pallavinegi ,

Do you want to get the average value of last 7 days? If yes, you can refer the following thread to get it:

calculate average for past 7 days

Power bi average last 7 days

Measure =
CALCULATE (
    AVERAGE ( 'Table'[Value] ),
    DATESINPERIOD ( 'Table'[Date], TODAY (), -7, DAY )
)

 

If the above one can't help you get the desired result, please provide some raw(fake) data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi  @pallavinegi ,

Whether your problem has been resolved? If yes, could you please mark the helpful post as Answered? It will help the others in the community find the solution easily if they face the same problem as yours. Thank you.

Best Regards

NikhilChenna
Skilled Sharer
Skilled Sharer

Hi @pallavinegi ,

 

We cannot see the formula,  I think you forgot to paste it. Can you please paste it so that we can check and revert on it.

 

Regards,

Nikhil Chenna

amitchandak
Super User
Super User

@pallavinegi , formula is not shared

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi, thanks for the answer. 

Actually, here is the condition which I want to apply, but could not achieve the result. I want to see the average for the date (today's date-7).

Sheet1'[Sale Order Date].[Date]today()-7
Thanks in advance!
Anonymous
Not applicable

Hi @pallavinegi ,

Do you want to get the average value of last 7 days? If yes, you can refer the following thread to get it:

calculate average for past 7 days

Power bi average last 7 days

Measure =
CALCULATE (
    AVERAGE ( 'Table'[Value] ),
    DATESINPERIOD ( 'Table'[Date], TODAY (), -7, DAY )
)

 

If the above one can't help you get the desired result, please provide some raw(fake) data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.