Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi guys,
I have the following scenario:
CHALLENGE:
EXAMPLE:
VISIT TABLE: The manager ID 10 has visited the four accounts listed below.
Manager ID | Account ID |
---|---|
10 | 1001 |
10 | 1002 |
10 | 1003 |
10 | 1005 |
ACCOUNT PANEL TABLE (Island Table): The manager ID 10 has 4 accounts in his panel according to the table below:
Manager ID | Account ID |
---|---|
10 | 1001 |
10 | 1002 |
10 | 2001 |
10 | 2002 |
FORMULA RULE:
Panel Coverage = 2/4 = 50%.
It means that, even though the manager 10 visited four accounts, only two accounts belong to his panel, so he is covering only 50% of his panel.
My question is: Is that possible to do an intersection in set analysis to get this panel? In this ratio, I want that the numerator consider only the accounts that belong to the manager's panel (in this case 2) divided by the number of accounts that the manager has in his personal panel.
Thank you in advance.
Best,
Rubens Rodrigues
Try this?
Visit:
LOAD * INLINE [
ManagerID, AccountID
10, 1001
10, 1002
10, 1003
10, 1005
];
Panel:
LOAD * INLINE [
ManagerID, PanelAccountID
10, 1001
10, 1002
10, 2001
10, 2002
];
Using Straight table add
Dim: ManagerID
Expr: = Count({< AccountID = P(AccountID)> * <AccountID = P(PanelAccountID)> } AccountID)/Count(TOTAL AccountID)
Change the Number Settings in Number tab of Chart Properties. Or use Num() function for formatting.
Read here this might help:
Try this?
Visit:
LOAD * INLINE [
ManagerID, AccountID
10, 1001
10, 1002
10, 1003
10, 1005
];
Panel:
LOAD * INLINE [
ManagerID, PanelAccountID
10, 1001
10, 1002
10, 2001
10, 2002
];
Using Straight table add
Dim: ManagerID
Expr: = Count({< AccountID = P(AccountID)> * <AccountID = P(PanelAccountID)> } AccountID)/Count(TOTAL AccountID)
Change the Number Settings in Number tab of Chart Properties. Or use Num() function for formatting.
Thanks!