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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Ratio of a Day Value vs The average of that Weekday

Hello,

I've been scanning quite some sample but just can't find (or can't see :-)) what i'm looking for.

I would rate a Value for a given date vs the averga of all dates that have the same weekday.

So if the Date is a monday, rate the measure vs the average of the same measure of all mondays

 

Kind regards, Harry

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi, @Anonymous

You could use ALLEXCEPT in your the average of the same measure of all mondays measure.

For example:

Measure 4 = CALCULATE(AVERAGE(Table1[Qty]))

Measure 5 = CALCULATE(AVERAGE(Table1[Qty]),ALLEXCEPT(Table1,Table1[day]))

1.JPG

 

 

If not your case, please share some data sample and expected output. Do mask sensitive data before uploading.

 

 

Best Regards,

Lin

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

Well, it's going to depend on your data. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

But, that being said, you probably will need to use an ALL or ALLEXCEPT with this.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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