cancel
Showing results for
Did you mean:

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a \$100 discount. Register Now

Helper I

## Absolute Percentage Difference

Hello,

I am currently trying to get the absolute percentage difference between 2 time values, but I'm struggling to get it to work.

I have this table:

I need the following calculation: Run_Time/SFI_Total_Posted_Run_Time x 100

However the calculation I use doesnt work:

PercentDiff = CALCULATE(
SUM(RoutingLinesNew[Run_Time])/
SUM(routinglinesnew[sfi_total_posted_run_time]*100))

Any help would be greatly appreciated.
Thanks!

1 ACCEPTED SOLUTION
Super User

@kelly008 , you have to create a measure like

Divide(

SUM(RoutingLinesNew[Run_Time]),
SUM(routinglinesnew[sfi_total_posted_run_time]))

and mark that as % column

Please remember the two are not equal

Run_Time/SFI_Total_Posted_Run_Time <>

Divide(

SUM(RoutingLinesNew[Run_Time]),
SUM(routinglinesnew[sfi_total_posted_run_time]))

Super User

@kelly008 , you have to create a measure like

Divide(

SUM(RoutingLinesNew[Run_Time]),
SUM(routinglinesnew[sfi_total_posted_run_time]))

and mark that as % column

Please remember the two are not equal

Run_Time/SFI_Total_Posted_Run_Time <>

Divide(

SUM(RoutingLinesNew[Run_Time]),
SUM(routinglinesnew[sfi_total_posted_run_time]))

Announcements

#### Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

#### Power BI Monthly Update - February 2024

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

#### Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

#### Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors