Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I am trying to create a measure that would sum the values in one column, 'Time(Days)', only if the column, 'Task', does not contain the text "leave".
I was thinking of something along the lines of:
Measure = Calculate(sum(Time(Days), Filter(Table 1, Task does not contain "leave")
alternatively, I could create a measure that sums along Timedays if Task contains the text leave, another measure that sums timedays then subtract the latter from the former.
Any help would be much appreciated.
dataset
Solved! Go to Solution.
Hi @nvizard ,
You can use this measure with the Search funtion
Hi @nvizard ,
You can use this measure with the Search funtion
Hi,
Perhaps something like below could work
Measure =
CALCULATE(
SUM('Table'[Days]),
FILTER('Table',NOT(FIND("Leave",'Table'[Task],,0))))
User | Count |
---|---|
73 | |
70 | |
38 | |
24 | |
23 |
User | Count |
---|---|
96 | |
93 | |
50 | |
41 | |
40 |