cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
kelly008
Helper I
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:

kelly008_0-1667820406622.png

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
amitchandak
Super User
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]))

View solution in original post

1 REPLY 1
amitchandak
Super User
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]))

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors