Forum Discussion
Arioli_Chezhian
Helper II
3 years agoCreate calculated column in Live connection
Hello All, I have 2 tables, Table 1 is live connection(Using existing dataset) and Table 2 is import file. The Employee ID present in import file should be shown as "Flag - Internal"...
- 3 years ago
Arioli_Chezhian Please Try This one.
Flag =IF (SELECTEDVALUE ( 'Table 1'[Emp ID] ) = MAX ( 'Table 2'[Emp ID] ),"Internal","External")
Mahesh0016
Super User
3 years agoArioli_Chezhian Table 1 is your fact table and Table 2 is the Dimension Table, Right?
- Arioli_Chezhian3 years ago
Helper II
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?