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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
jaryszek
Memorable Member
Memorable Member

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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