The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
85 | |
84 | |
36 | |
34 | |
31 |
User | Count |
---|---|
92 | |
79 | |
66 | |
55 | |
52 |