The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Good Morning
I have created the following summary table and now need to filter the results based on the categories listed in the WorkOrders[TypeId]
Filter values = "REF_P1, REF_P2, REF_P3 and REF_P4
Thanks in advance for your assistance
Solved! Go to Solution.
Hi @Andy-K,
Instead of repeating the filter each time, you could pre-filter your SUMMARIZE
like this
Task Status Count =
SUMMARIZE (
FILTER (
WorkOrderTasks,
RELATED ( WorkOrders[TypeId] ) IN { "REF_P1", "REF_P2", "REF_P3", "REF_P4" }
),
WorkOrderTasks[Task Status],
"Category_In Progress", CALCULATE ( COUNTROWS ( WorkOrderTasks ), WorkOrderTasks[Task Status] = "In Progress" ),
"Category_Pending", CALCULATE ( COUNTROWS ( WorkOrderTasks ), WorkOrderTasks[Task Status] = "Pending" ),
"Category_On Hold", CALCULATE ( COUNTROWS ( WorkOrderTasks ), WorkOrderTasks[Task Status] = "On Hold" )
-- etc…
)
🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
🔗 Curious to explore more? [Discover here].
Let’s keep building smarter solutions together!
Hi @Andy-K,
Thank you for reaching out to the Microsoft Fabric Community Forum. Also, thanks to @grazitti_sapna, for his inputs on this thread.
Has your issue been resolved? If the response provided by the community member @grazitti_sapna, addressed your query, could you please confirm? It helps us ensure that the solutions provided are effective and beneficial for everyone.
Hope this helps clarify things and let me know what you find after giving these steps a try happy to help you investigate this further.
Thank you for using the Microsoft Community Forum.
Hi @Andy-K,
Instead of repeating the filter each time, you could pre-filter your SUMMARIZE
like this
Task Status Count =
SUMMARIZE (
FILTER (
WorkOrderTasks,
RELATED ( WorkOrders[TypeId] ) IN { "REF_P1", "REF_P2", "REF_P3", "REF_P4" }
),
WorkOrderTasks[Task Status],
"Category_In Progress", CALCULATE ( COUNTROWS ( WorkOrderTasks ), WorkOrderTasks[Task Status] = "In Progress" ),
"Category_Pending", CALCULATE ( COUNTROWS ( WorkOrderTasks ), WorkOrderTasks[Task Status] = "Pending" ),
"Category_On Hold", CALCULATE ( COUNTROWS ( WorkOrderTasks ), WorkOrderTasks[Task Status] = "On Hold" )
-- etc…
)
🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
🔗 Curious to explore more? [Discover here].
Let’s keep building smarter solutions together!
User | Count |
---|---|
65 | |
60 | |
60 | |
53 | |
27 |
User | Count |
---|---|
181 | |
88 | |
70 | |
48 | |
46 |