Forum Discussion
Create calculated column in Live connection
- 3 years ago
Arioli_Chezhian Please Try This one.
Flag =IF (SELECTEDVALUE ( 'Table 1'[Emp ID] ) = MAX ( 'Table 2'[Emp ID] ),"Internal","External")
Arioli_Chezhian Table 1 is your fact table and Table 2 is the Dimension Table, Right?
Mahesh0016 yes, that's correct.
- Mahesh00163 years ago
Super User
Arioli_Chezhian I hope this helps you. Thank you.
>Create Following Measures :
Tbl1 =
SUM ( 'Table Workspace'[Emp ID] )
#################################
Tbl2 =
SUMX ( 'Table Flag', [Tbl1] )
################################
Flag =
IF ( [Tbl1] = [Tbl2], "Internal", "External" )- Arioli_Chezhian3 years ago
Helper II
Mahesh0016
I have a correction in the data. You have done SUM for Emp ID, just for example I gave Emp ID as number but in my case the EMP ID has alphabetics with numerics. (Example: abcd324).
In this case we cannot SUM the column right, as the datatype will stay as TEXT.
How to overcome this?- Mahesh00163 years ago
Super User
Arioli_Chezhian okay, I will try and let you know one more thing is your employee ID length is same, right