Forum Discussion
Filter value in a new column
- 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,
KellyDid I answer your question? Mark my post as a solution!
Hi, thank you for getting back to me.
I have managed create a new column by using switch where it is looking at each each "xxxx" and bringing their duration value. But I need my new column to sum up all the e.g. "break" taken by each member on the same date. Please can you advise?
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!
- Anonymous5 years agoNot applicable
Hi, thank you for your reply. Unfortunately, I am getting 00:00:00 as a value.
This is an example of what I need in the new the column, it is very easy to do this in excel by creating a pivot anfd filtering out which I have been doing previously but finding it quite difficult in PowerBI.
As you can see it needs to sum the duration of each activity performed on the same date.
Appreciate your help, thank you