Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi good day can anyone help me to edit my calculated column, when i used the below parameter it shows all the value in each category. what i need is same parameter but addional filter by Trade let say trade Plumber, Elect and Mech and also by shift nigth and Day.
Solved! Go to Solution.
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!!
Proud to be a Super User! | |
Hi @AllanBerces - create a calculated column as below to calculation only includes rows that match the same Shutdown Mode, Location, Trade, and Shift.
calculation only includes rows that match the same Shutdown Mode, Location, Trade, and Shift.
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] = EARLIER(MAIN[Trade]) &&
MAIN[Shift] = EARLIER(MAIN[Shift])
)
)
Hope it helps
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Proud to be a Super User! | |
Hi @rajendraongole1 thank you for your reply but the result is the same. for trade i have structural and welder what in need is to filter by Plumber, Elect and Mech, and same with the shift i have afternoon shift, nigth shift, midnigth shift and day shift and i want to filter by nigth and day only.
Thank you
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!!
Proud to be a Super User! | |
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 55 | |
| 35 | |
| 31 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 75 | |
| 72 | |
| 38 | |
| 35 | |
| 25 |