cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Create Counter for same properties in dimension

SAC_Newbie
Explorer
0 Kudos
248

Dear all,

I am currently working on a problem in SAC where I am looking to optimize my solution.

I have a customer with a very specific expectation. For simplification reasons let us assume the SAC model has one dimension called "User" with 2 properties "CostCenter" and "WFH Flag". The model has one measure called "Counter" which is currently blank. Now the customer wants to fill this measure, so that for each user you are able to see the count of the CostCenter and WFH Flag.

Before:

UserCost CenterWFH FlagCounter
A1Remote-
B1Remote-
C1Hybrid-
D2Office-
E2Office-
F2Office-
G3Remote-

 

After:

UserCost CenterWFH FlagCounter
A1Remote2
B1Remote2
C1Hybrid1
D2Office3
E2Office3
F2Office3
G3Remote

1

I have created this solution by looping through the user dimension, counting the concatenated string of CostCenter and Flag. Then I place it into a property of the user dimension which I write to a measure via data action.

This approach is fine if you have a few users. But with thousands of users it will take some time.

Is there a better approach for example using data action functionalities? I was thinking of having a loop in the DTAs but I did not manage to get it.

Thank you!

Accepted Solutions (0)

Answers (0)