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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors