SELECT Sum(OpenCount), Sum(ClosedCount), Sum(PendingCount), Phase_Types
FROM
(
SELECT Count(*) OpenCount, '0' ClosedCount, '0' PendingCount, Phase_Types
FROM Table
where status='Open'
Group by Phase_Types
UNION
SELECT '0' OpenCount, Count(*) ClosedCount, '0' PendingCount, Phase_Types
FROM Table
where status='Closed'
Group by Phase_Types
UNION
SELECT '0' OpenCount, '0' ClosedCount, Count(*) PendingCount, Phase_Types
FROM Table
where status='Pending'
Group by Phase_Types
)
GROUP BY Phase_Types
Hi Darshana Gunjal,
We can achieve the same using microflows too. @Shekhar Tyagi suggested an efficient way to achieve it. Grouped bar charts will helps you to display the different Status count for each phase-type. We can achieve it by using the AnyChart widget and Plotly.js libraries. For your reference, I will share the sample screenshots.
Doc link: https://docs.mendix.com/appstore/modules/any-chart
Result :
Thanks and regards,
Vijayabharathi V