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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
pallavinegi
Frequent Visitor

Minimize the formula

 
1 ACCEPTED SOLUTION

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
v-yiruan-msft
Community Support
Community Support

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
NikhilChenna
Continued Contributor
Continued Contributor

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

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!

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors