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
Anonymous
Not applicable

Multiplication with measure

Hi all,

 

I want to do a multiplication which looks like this:

 

TimeDifference * SpeedM/S

 

//

TimeDifference =Max(Table1[TIME]) - MIN(Table1[TIME]) // TIME = a Calculated column

SpeedM/S = Divide(Table1[SpeedKM/H];3,6)

 

Thanks in advance !

 

L.Meijdam

1 ACCEPTED SOLUTION

@Anonymous,

In your table, you have different SpeedM/S for different Stationary Objects. You would need to create a measure to calculate a average speed value, then calculate distance between objects.

TimeDifference = MAX(Table1[time])-MIN(Table1[time])

AverageSpeed = AVERAGE(Table1[SpeedM/S])

OutputMeasure = [TimeDifference]*[AverageSpeed]

Regards,
Lydia

Community Support Team _ Lydia Zhang
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

28 REPLIES 28

@Anonymous,

In your table, you have different SpeedM/S for different Stationary Objects. You would need to create a measure to calculate a average speed value, then calculate distance between objects.

TimeDifference = MAX(Table1[time])-MIN(Table1[time])

AverageSpeed = AVERAGE(Table1[SpeedM/S])

OutputMeasure = [TimeDifference]*[AverageSpeed]

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @v-yuezhe-msft,

 

Thank you very much for your time it finally works like expected ! 🙂

 

Have a very good day !

@Anonymous

 

What is the format of time you're using?

 

00:10:00 - means 10 min or sec?

Anonymous
Not applicable

Hi @bsas,

 

I am using H:mm:ss

@Anonymous

 

try to use calculated column for time:

time1 = MINUTE('time and speed'[time])*60 + SECOND('time and speed'[time])

than use it in measure.

Anonymous
Not applicable

Hi @bsas,

 

I am sorry in which measure did you want me to use it ?

 

This is how I turned minutes from your "time" into seconds as number.

 

Untitled.png

bsas
Post Patron
Post Patron

Hi @Anonymous,

 

Try to use Value(timedif)*value(speed). In case it does not work vecouse of formats, please draw your table with few test data.

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.