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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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