Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi Team,
Could you look into the need.
I'm looking for a DAX for a new concated column calculating from column "ID" and column "Name", and concatenated based on expected string of "BC" from column "Type". And the rest of the rows should be null. Please observe two tables for clear understanding...
Actual Data Table:
Type | ID | Name |
AB | 123 | Compensation |
BC | 345 | Variable Pay |
CD | 127 | SPHR |
BC | 379 | Learning |
AB | 456 | Onboarding |
BC | 497 | Performance |
CD | 230 | Goals |
DC | 107 | Succession |
Expected Data Table:
Type | ID | Name | Expected Concated Column |
AB | 123 | Compensation | |
BC | 345 | Variable Pay | 345Variable Pay |
CD | 127 | SPHR | |
BC | 379 | Learning | 379Learning |
AB | 456 | Onboarding | |
BC | 497 | Performance | 497Performance |
CD | 230 | Goals | |
DC | 107 | Succession |
Thank you for your time and patience.
RK
Solved! Go to Solution.
ConcatCol = IF ( Type = "BC", CONCATENATE(ID, Name), "" )
Hope this helps,
David
IF ( OR(Type = "BC", Type = "AB") CONCATENATE(ID, Name), "" )
ConcatCol = IF ( Type = "BC", CONCATENATE(ID, Name), "" )
Hope this helps,
David
Hello @dedelman_clng,
It's worked to my requirement.
And just perhaps if I woul'd like to go with "BC" + "AB" (Just in case!)
Thanks in Advance...
RK
IF ( OR(Type = "BC", Type = "AB") CONCATENATE(ID, Name), "" )
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
147 | |
85 | |
66 | |
52 | |
46 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |