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

Doesn't count the SUM.

Hello,

I have two tables and there is a relationship between them.

Table Procotols:

EmployeeProtocol type
JohnA
TimB
JohnC
JohnA

 

Table Time:

Protocol typeTime
A0,5
B0,5
C2

 

I have relationship between them by Protocol type.

I'm trying calculate SUM or TOTAL - it's not working or show bad value (non-summed values)..

For example, I need to see this result:

powerbi.png

The time type is set to decimal value.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Try like

sumx(Procotols, related(Time[Time]))

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , Try like

sumx(Procotols, related(Time[Time]))

tex628
Community Champion
Community Champion

In your Protocol table add the following calculated column:

Column = Related(Table Time[typeTime])


Then SUM() that column instead. 

Br,
J


Connect on LinkedIn
Anonymous
Not applicable

Did you create a measure that uses the SUM() function? If so, can you share a screenshot of this formula? 

 

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.