Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Arioli_Chezhian
Helper II
Helper II

Create Calculate column in Live Connection or Alternate measure

Hello All,

Arioli_Chezhian_0-1693298274326.pngArioli_Chezhian_1-1693298287710.png

Arioli_Chezhian_3-1693298375803.png

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", and for other records should be shown as "External" or "Blank". 

We have to bring that Flag column from table 2 to table 1. Using RELATED function we can achieve this but since Table 1 is live connection unable to create Calculate column and Calculate Table.
Using relationship between these 2 table if we directly drag and drop the Flag column in a table visual, data will filtered out where Flag = Internal. Flag = External won'tbe appeared in the visual.  I believe it should be handled in Measure. 

Please advice how to achieve this measure. 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Arioli_Chezhian , Try a measure like

 

coalesce(maxx(filter(Table2, Tabel2[Emp ID] = Max(Table1[EMP ID])) , Table2[flag]), "External")

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Arioli_Chezhian , Try a measure like

 

coalesce(maxx(filter(Table2, Tabel2[Emp ID] = Max(Table1[EMP ID])) , Table2[flag]), "External")

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors