Forum Discussion
USERRELATIONSHIP gives wrong results
- 2 years ago
Dear all,
thanks to everybody who tried to think about the challenge - I now solved it by simply not repeating
CALCULATE (SUM ( tblValue[Value] ))in the second (userrelationship) measure, but refering here to the first measure
CALCULATE ([Measure1],USERRELATIONSHIP(tblProject[MC_ID], tblCustomer[MC_ID]))Now it works - even if I still don't exactely understand whyAll the bestBärbel
Dear Adamk,
thanks a lot for taking time to try to help me.
As I'm not alloud to share the original structure I tried to modify it. You can see the structure and the connections of the tables. Except the Calendar_table, the other DIM-tables are for other calculations in other visuals and not relevant for my calculation.
I'm trying to calculate the sum(value) from table1 for a certain perion of time (Months, yréar) and differentiated by C_Group and C_type (C_type is a part of the C_Group [hierarchy].
Table 2 consist of colums silimiar like this
| PR_ID | DC:ID | MC_ID | Explanation |
| 1 | 123 | 888 | as the project is carried out as su-contractor, the direct customer (DC) differs from the main customer (MC) |
| 2 | 432 | 432 | project carried out as main contractor, so DC and MC are the same |
Table 3 consists of 5 colums - similiar like this:
| DC_ID | MC_ID | C_Name | C_Group | C_Type |
| 123 | 789 | Fox | public | energy |
| 234 | 999 | Fish | private | services |
| 432 | 888 | Bird | private | energy |
I hope I could explain it a bit better. Thanks a lot in advance
Bärbel