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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Calculating Athlete max Velocity percentages

Hi All,

 

I was wondering if anyone could help me?

 

In Table 1 is where I add gps data from the athlete during there session each day (Date, Duration, distance, Max speed achieved)

 

In table 2 I have there Highest achieved scores for the same metrics. 

 

I have two tables connected via athlete name.

 

I want to put a new column in table 1 which is the percentage of Max speed achieved during that session compared to their maximum value recorded in table 2 for each athlete.

 

Could someone please help me with this as I am quite new to powerbi and not sure about it?

 

Many thanks,

SportStudent

 

 

1 ACCEPTED SOLUTION
v-lionel-msft
Community Support
Community Support

Hello @SportStudent ,

Like this?

I have two tables.

v-lionel-msft_0-1601890950986.png

v-lionel-msft_1-1601890967384.png

1. Despivot columns in 'Sheet8'.

v-lionel-msft_2-1601891082351.png

2. Create a relationship between [Name].

3. Create a measure.

__Max = 
MAXX(
    FILTER( ALL(Sheet8), Sheet8[Name] = MAX(Sheet8[Name]) ),
    [Value]
) 

4. Create a calculated column in 'Sheet7'.

Column = 
[Max Speed]/[__Max]

v-lionel-msft_3-1601891157017.png

If not, show us the sample data and the expected output value.

Best regards
Lionel Chen

If this post helps,then consider Accepting it as the solution to help other members find it faster.

View solution in original post

3 REPLIES 3
v-lionel-msft
Community Support
Community Support

Hello @SportStudent ,

Like this?

I have two tables.

v-lionel-msft_0-1601890950986.png

v-lionel-msft_1-1601890967384.png

1. Despivot columns in 'Sheet8'.

v-lionel-msft_2-1601891082351.png

2. Create a relationship between [Name].

3. Create a measure.

__Max = 
MAXX(
    FILTER( ALL(Sheet8), Sheet8[Name] = MAX(Sheet8[Name]) ),
    [Value]
) 

4. Create a calculated column in 'Sheet7'.

Column = 
[Max Speed]/[__Max]

v-lionel-msft_3-1601891157017.png

If not, show us the sample data and the expected output value.

Best regards
Lionel Chen

If this post helps,then consider Accepting it as the solution to help other members find it faster.

Anonymous
Not applicable

Hi Lionel Chen,

That has worked beautifully!

Thank you ever so much for your help on the matter!

Kindest,

SportStudent

TomMartens
Super User
Super User

Hey @Anonymous 

 

Regarding your question, I have to admit that I have my problems understanding your requirement.

Please consider to create a pbix file that contains sample data, but still reflects the data model (https://docs.microsoft.com/en-us/learn/modules/design-model-power-bi/).
You can use this to enter data directly in Power BI Desktop: https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-enter-data-directly-into-desktop. Upload the pbix file to onedrive or dropbox and share the link. If you are using Excel to create the sample data, share the xlsx as well.
Create columns that contain the expected results, use the sample data to explain how the result is derived from the sample data.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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