Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Filter value in a new column

Hi,  I am trying to create a new column where I can filter and select multiple options from the 'activity' column which would give me the result of 'duration' value in my new column.    From my p...
  • v-kelly-msft's avatar
    v-kelly-msft
    5 years ago

    Hi Anonymous,

     

    Sorry for a late reply!

    You wanna sum up all the activities which contain "break",right?If so,you could use below dax expression:

    Create 2 calculated columns as below:

    flag = SEARCH("Break",[Activity],1,0)
    
    Column = SUMX(FILTER('Table','Table'[flag]>0),[Duration])

     And you will see:

    For the related .pbix file,pls see attached.

     

    Best Regards,
    Kelly

    Did I answer your question? Mark my post as a solution!