Forum Discussion
Tulio_DL
9 years agoHelper I
Data modeling - Non unique values
Hello all! First I'd like to thank all who read this and intend to help, you make this comunnity awesome! I'm trying to link 2 tables, a FACT and a DIMENSIONS one, but this latter doesn't ...
- 9 years ago
Hi, using a calculated column And DimA is 10
When DimA-10 = LOOKUPVALUE ( Table1[Dim B], Table1[Ticket], Tickets[Ticket]; Table1[Dim A], 10 )Using a measure:
Measure-When DimA-10 = IF ( HASONEVALUE ( Table1[Ticket] ), LOOKUPVALUE ( Table1[Dim B], Table1[Ticket], VALUES ( Tickets[Ticket] ), Table1[Dim A], 10 ) )let me know if works.
Victor
- Anonymous9 years ago
Tulio_DL,
Create the calculated column in TABLE A.When DimA-10 = LOOKUPVALUE ( 'TABLE B'[DIM b], 'TABLE B'[Ticket], 'TABLE A'[Ticket], 'TABLE B'[DIM a], 10 )
Also you can change the second formula of Vvelarde to the following:Measure-When DimA-10 = IF ( HASONEVALUE ( 'TABLE B'[Ticket] ), LOOKUPVALUE ( 'TABLE B'[DIM b], 'TABLE B'[Ticket], VALUES ( 'TABLE A'[Ticket] ), 'TABLE B'[DIM a], 10 ) )
Regards,
Vvelarde
9 years agoCommunity Champion
Hi, using a calculated column And DimA is 10
When DimA-10 =
LOOKUPVALUE (
Table1[Dim B],
Table1[Ticket], Tickets[Ticket];
Table1[Dim A], 10
)Using a measure:
Measure-When DimA-10 =
IF (
HASONEVALUE ( Table1[Ticket] ),
LOOKUPVALUE (
Table1[Dim B],
Table1[Ticket], VALUES ( Tickets[Ticket] ),
Table1[Dim A], 10
)
)let me know if works.
Victor
Tulio_DL
9 years agoHelper I
Hello Victor!
Thanks for your support,
I don't quite got there yet, could you please check your formula spelling? Let's say that the left table is named TABLE A (wich is where I have the facts) and the right one is TABLE B (wich there's the dimension I want to bring to TABLE A)
- Anonymous9 years agoNot applicable
Tulio_DL,
Create the calculated column in TABLE A.When DimA-10 = LOOKUPVALUE ( 'TABLE B'[DIM b], 'TABLE B'[Ticket], 'TABLE A'[Ticket], 'TABLE B'[DIM a], 10 )
Also you can change the second formula of Vvelarde to the following:Measure-When DimA-10 = IF ( HASONEVALUE ( 'TABLE B'[Ticket] ), LOOKUPVALUE ( 'TABLE B'[DIM b], 'TABLE B'[Ticket], VALUES ( 'TABLE A'[Ticket] ), 'TABLE B'[DIM a], 10 ) )
Regards,