Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Question -
I have some HR data coming in and I need to create a chart that shows the sum of all IT Team Members. Currently my data is coming in as follows. How can I create a chart that shows only the count of IT-Team Member? I also have a month field that would be used as my Dimension.
| Person Type | Count |
|---|---|
| Team Member | 30 |
| IT-Team Member | 5 |
| IT-Contractor | 2 |
| Contractor | 10 |
Or Sum({<[PersonType]={'IT-Team Member'}>} [Count])
I guess the better question is how can I write the expression, I know how to create a chart.... ![]()
How many members are there in the IT team. If it is not a lot then you can hard code them in set analysis.
Thanks
At the moment there are 200 or so but it changes every month.
I mean how many person types.
There are only 4 different person types. Team Member, IT-Team Member, IT-Contractor, and Contractor.
count({<[Person Type]={'IT-Contractor', 'IT-Team Member'}>} [Person Type])
That is close but that returns the count of the appearance of IT-Team Member and IT-Contractor. I need the sum of the count field for every line where the person type is IT-Team Member or IT-Contractor. They could be separate from each other.
I think this might be it.
Sum({<[PersonType]={'IT-Team Member'}>} [CountOfTEXID])
Or Sum({<[PersonType]={'IT-Team Member'}>} [Count])