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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
jordanwhite16
Regular Visitor

Calculating days since hitting a speed within sport data set

Hi all,

 

I have a measure MaxSpeed90 already calculating 90% of a players max speed ever achieved, and I am collecting a max speed for the training sessions for individuals on a daily basis in a 'MaxSpeed' column. I am trying to calculate how many days it has been since that MaxSpeed90 number has been hit within the training data set of my 'maxspeed' column, but am struggling to get the end format into days whilst also figuring out the DAX to get to that end result. Any help would be greatly appreciated.

 

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @jordanwhite16 ,

 

Due to I don't know your data model, I create a sample to have a test.

vrzhoumsft_0-1692684863826.png

Max Speed = CALCULATE(MAX('Table'[Speed]),ALLEXCEPT('Table','Table'[Player]))
Count Days after Max Speed = 
VAR _MAXSPEEDDAY = CALCULATE(MAX('Table'[Date]),FILTER(ALLEXCEPT('Table','Table'[Player]),'Table'[Speed] = [Max Speed]))
RETURN
CALCULATE(COUNT('Table'[Date]),FILTER(ALLEXCEPT('Table','Table'[Player]),'Table'[Date]>_MAXSPEEDDAY))

Result is as below.

vrzhoumsft_1-1692684878101.png

 

Best Regards,
Rico Zhou

 

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

1 REPLY 1
Anonymous
Not applicable

Hi @jordanwhite16 ,

 

Due to I don't know your data model, I create a sample to have a test.

vrzhoumsft_0-1692684863826.png

Max Speed = CALCULATE(MAX('Table'[Speed]),ALLEXCEPT('Table','Table'[Player]))
Count Days after Max Speed = 
VAR _MAXSPEEDDAY = CALCULATE(MAX('Table'[Date]),FILTER(ALLEXCEPT('Table','Table'[Player]),'Table'[Speed] = [Max Speed]))
RETURN
CALCULATE(COUNT('Table'[Date]),FILTER(ALLEXCEPT('Table','Table'[Player]),'Table'[Date]>_MAXSPEEDDAY))

Result is as below.

vrzhoumsft_1-1692684878101.png

 

Best Regards,
Rico Zhou

 

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

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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