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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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