Forum Discussion
Sumx and Filter
- 2 years ago
Hi AllanBerces -Understood. To filter by specific trades (Plumber, Elect, and Mech) and specific shifts (Night and Day), you need to explicitly include those conditions in filter function.
calculated column :
Main_Reaming_hrs_shut =
CALCULATE(
SUMX(
MAIN,
MAIN[Remaining hours]
),
FILTER(
ALL(MAIN),
MAIN[Shutdown Mode] = EARLIER(MAIN[Shutdown Mode]) &&
MAIN[Location] = EARLIER(MAIN[Location]) &&
MAIN[Trade] IN {"Plumber", "Elect", "Mech"} &&
MAIN[Shift] IN {"Night", "Day"}
)
)Hope it helps. let me know if still issue exist.
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Hi AllanBerces -Understood. To filter by specific trades (Plumber, Elect, and Mech) and specific shifts (Night and Day), you need to explicitly include those conditions in filter function.
calculated column :
Main_Reaming_hrs_shut =
CALCULATE(
SUMX(
MAIN,
MAIN[Remaining hours]
),
FILTER(
ALL(MAIN),
MAIN[Shutdown Mode] = EARLIER(MAIN[Shutdown Mode]) &&
MAIN[Location] = EARLIER(MAIN[Location]) &&
MAIN[Trade] IN {"Plumber", "Elect", "Mech"} &&
MAIN[Shift] IN {"Night", "Day"}
)
)
Hope it helps. let me know if still issue exist.
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
HI rajendraongole1 thank you very much work as i need.