Hello All,
I have a scenario to where I am putting employees into buckets of when someone has initiated an action and when they have not. So say I have 1000 emps and lets say 600 initiated an action and 400 did not. I need to show in my report in Excel my bucket of 0 or 1+ Actions - so this would be one column, and then in the next column I want to show the # of Actions and then the % of those employees off of the total # of employees. So it would look something like:
Actions-----Values
0------------400
0------------40%
1------------600
1------------60%
In my SSAS/DAX data model I have the count of employee's as 1000, and created a column for the Buckets showing if an employee had an Action or not. So I have those just fine - my issue is creating the DAX formula to come up with the 40%/60% in my example above. In a logical way its simple as its The # of Emps with an action / total # of Emps. But how do I do that in my model? I have an Emps column where I do a count of all Emps. I have an Action column and I have created a Sum Measure of those. As I stated, I created a Bucket column to determine whether the Emp had an action or not. I tried to sum that up and then divide it by the Emps total but that didn't remotely work, lol.
Any suggestions would be appreciated!
I have a scenario to where I am putting employees into buckets of when someone has initiated an action and when they have not. So say I have 1000 emps and lets say 600 initiated an action and 400 did not. I need to show in my report in Excel my bucket of 0 or 1+ Actions - so this would be one column, and then in the next column I want to show the # of Actions and then the % of those employees off of the total # of employees. So it would look something like:
Actions-----Values
0------------400
0------------40%
1------------600
1------------60%
In my SSAS/DAX data model I have the count of employee's as 1000, and created a column for the Buckets showing if an employee had an Action or not. So I have those just fine - my issue is creating the DAX formula to come up with the 40%/60% in my example above. In a logical way its simple as its The # of Emps with an action / total # of Emps. But how do I do that in my model? I have an Emps column where I do a count of all Emps. I have an Action column and I have created a Sum Measure of those. As I stated, I created a Bucket column to determine whether the Emp had an action or not. I tried to sum that up and then divide it by the Emps total but that didn't remotely work, lol.
Any suggestions would be appreciated!