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
Jingspat
Frequent Visitor

Sum with filtering on multiple columns

I want to be able to get a total for Call Time if the name is in either Call From or Call to.  The table looks like this:

 

 

Call DateCall FromCall ToCall TypeCall Time (seconds)Talk Time (seconds)
6/15/2017 11:23 AMName 1 <312>1234567891outgoing100
6/15/2017 11:23 AM9876543211Name 1 <312>incoming1411
6/15/2017 11:23 AMName 2 <319>Name3 <332>outgoing5642

 

How do I create that measure?

 

4 REPLIES 4
v-ljerr-msft
Employee
Employee

Hi @Jingspat,

 

If I understand you correctly, you should be able to use the formula below to create a new measure to calculate the total call time in your scenario. Smiley Happy

Total Call Time = 
CALCULATE (
    SUM ( Table1[Call Time (seconds)] ),
    FILTER (
        Table1,
        FIND ( "Name", Table1[Call From],, 0 ) > 0
            || FIND ( "Name", Table1[Call To],, 0 ) > 0
    )
)

 

Regards

Thanks so much for the response @v-ljerr-msft!!!  We have hundreds of varying names, if I understand your propopsed solution, that would just search by one name.  Is it possible to have it show the total talk time for all names?

Hi @Jingspat,

 

Have you tried the solution provided above? Does it work in your scenario? If it works, could you accept it as solution to close this thread?

 

If you still have any question on this issue, feel free to post here. Smiley Happy

 

Regards

Hi @Jingspat,

 

Could you try the formula below to see if it works? Smiley Happy

Total Call Time =
CALCULATE (
    SUM ( Table1[Call Time (seconds)] ),
    FILTER (
        Table1,
        FIND ( "<", Table1[Call From],, 0 ) > 0
            || FIND ( "<", Table1[Call To],, 0 ) > 0
    )
)

 

Regards

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.