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
SportStudent
Frequent Visitor

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.

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 @SportStudent 

 

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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