Forum Discussion
AllanBerces
1 year agoPost Prodigy
Not equal
Hi good day, Can anyone help me on how to simplify the part of my calculated column. The Bold and underline portion Forecast = FILTER(SUMMARIZE('Data', 'Data'[Date], 'Data'[Subcon], 'Data'[...
- 1 year ago
Hey man, AllanBerces
use the same IN approach like above, just with NOT operator:
Forecast = FILTER ( SUMMARIZE ( 'Data', 'Data'[Date], 'Data'[Subcon], 'Data'[TA], 'Data'[WNT], "ForecastHrs", CALCULATE ( SUM ( 'Data'[ForecastHrs] ) ), "Hoursperday", CALCULATE ( SUM ( 'Data'[Hours Per day] ) ) ), [Subcon] IN { "A", "B", "C" } && [TA] = "TA25" && NOT ( [WNT] IN { "FA5", "EG1", "Asset" } ) )
vojtechsima
1 year agoSuper User
Hey man, AllanBerces
use the same IN approach like above, just with NOT operator:
Forecast =
FILTER (
SUMMARIZE (
'Data',
'Data'[Date],
'Data'[Subcon],
'Data'[TA],
'Data'[WNT],
"ForecastHrs", CALCULATE ( SUM ( 'Data'[ForecastHrs] ) ),
"Hoursperday", CALCULATE ( SUM ( 'Data'[Hours Per day] ) )
),
[Subcon] IN { "A", "B", "C" }
&& [TA] = "TA25"
&& NOT ( [WNT] IN { "FA5", "EG1", "Asset" } )
)
AllanBerces
1 year agoPost Prodigy
Hi vojtechsima thank you very much for the reply. working as i need.
- vojtechsima1 year agoSuper User
Happy to help AllanBerces