Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi All,
I want to create a custom column using a combination of two different columns in the table. For example, i have given sample table below, i want my end output as if Country equals to Canada and Sector equals to cash then new column should populate Cash or else default value as country column.
Someone please help me on this.
Country | Sectorr |
Canada | Cash |
United States | Government |
India | Corporate |
Germany | Government |
Canada | Corporate |
Poland | Cash |
Oman | Government |
Russia | Government |
Sweden | Government |
I got the solution. Thanks for your reply
I'm glad to hear it!
Please mark as solved for other users who may have the same problem
Hi @Bansi008
I'm not sure if I have understood what you want to return in the else part (I have put Table[Country]), but you can modify it by [Sectorr]:
New column = IF('Table'[Country]= "Canada" && 'Table'[Sectorr]="Cash", "Cash",'Table'[Country] )
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
75 | |
60 | |
37 | |
33 |
User | Count |
---|---|
102 | |
56 | |
52 | |
46 | |
40 |