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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
30rakesh
Regular Visitor

Average calculation on data between two tables

Hi,

 

I have two tables. One is 'Incident' and the second is 'HoldActivity' (and relation between these two tables is 'IncId' as shown below).  I need to display a visual which should show the average of TotalDuration and HoldDuration. When I apply the average, it shows the TotalDuration as 125 (i.e. 100+150/2) and HoldDuration as 50. 

Actually, I need HoldDuration to display as 25. Can you anyone help me in solving this issue.

 

Incident

 

Capture.PNG

HoldActivity  

Capture1.PNG 

 

 

Thanks

Rakesh

1 ACCEPTED SOLUTION
SabineOussi
Skilled Sharer
Skilled Sharer

You need to add something like this

 

DIVIDE(
HoldActivity[HoldDuration],
DISTINCTCOUNT(Incident[IncId])
)

if you are calculating the average of HoldDuration based on the number of incidents in table Incident.

 

 

 

View solution in original post

3 REPLIES 3
SabineOussi
Skilled Sharer
Skilled Sharer

You need to add something like this

 

DIVIDE(
HoldActivity[HoldDuration],
DISTINCTCOUNT(Incident[IncId])
)

if you are calculating the average of HoldDuration based on the number of incidents in table Incident.

 

 

 

Thank you SabineOussi!!

It worked.

SamLester
Microsoft Employee
Microsoft Employee

What logic are you using to determine that the value should be 25?

 

Thanks,
Sam Lester (MSFT)

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.