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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
jaryszek
Post Prodigy
Post Prodigy

Put conditional column in a function based on conditions

Hello,

 

i have 3 tables:

tableKey:

jaryszek_0-1621866879200.png

 

and TableDef:

jaryszek_1-1621866892426.png

 

and TableMap:

jaryszek_2-1621867042844.png

 

as you can see TableDef and TableMap has 2 key columns: Key1 and Key2.

Wha i want to write function which:

1) will join 2 the same tables by keys (Key and Key2). (so will check what we have in TableKeys and use it properly).

2) Generete the list which exludes Keys and using only all other columns

3) expand all other columns from joined table

I want to automate these steps using function.

 

Link:

https://drive.google.com/file/d/1xzz4M2yPz6J2SndtXdt0_ubCCxRR9QCa/view?usp=sharing

 

Can anybody help?

Thank you in advance,
Best,
Jacek

 

 

1 REPLY 1
v-jingzhang
Community Support
Community Support

Hi @jaryszek 

Can you provide the expected output in table format with the sample data? That would help us understand your requirement better. Currently I'm a little confused about what the expected result should be like.

 

Regards,
Community Support Team _ Jing

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors
Top Kudoed Authors