Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi All
I have two columns, one is customer ID and 2nd is Customer Parent. I need a 3rd column containg values from first and 2nd as shown below.
Customer ID Customer Parent ID 3rd Column (I Want to Create in Power BI)
0001 0010 0010
0002 0002
0003 0010 0010
0004 0004
0005 0011 0011
0006 0006
0007 0007
Regards
Rashid Anwar
Solved! Go to Solution.
Column3 = IF(ISBLANK([Customer Parent ID]),[Customer ID],[Customer Parent ID])
You can use DAX to create a calculated column as @Greg_Deckler suggested.
This can also be achieved via Power Query:
= if [Column2] is null then [Column1] else [Column2]
Regards,
You can use DAX to create a calculated column as @Greg_Deckler suggested.
This can also be achieved via Power Query:
= if [Column2] is null then [Column1] else [Column2]
Regards,
Column3 = IF(ISBLANK([Customer Parent ID]),[Customer ID],[Customer Parent ID])
Hi Smoupre
I applied your formula Column3 = IF(ISBLANK([Customer Parent ID]),[Customer ID],[Customer Parent ID]) but it is not picking the value for blak field. I mean it is giving the following results shown in 3rd column. One thing to note that source of data is SQL server. I guess ISBLANK function si not recognizing the Blank fields in Customer Parent ID table as blank that is why returning the results.
Customer ID Customer Parent ID 3rd Column (I Want to Create in Power BI)
0001 0010 0010
0002
0003 0010 0010
0004
0005 0011 0011
0006
0007
Thank you very much. It works ![]()
Rashid Anwar
Greetings rashid0146,
This may be of some help to you:
http://community.powerbi.com/t5/Desktop/help-how-to-merge-2-columns/td-p/53920
This link is a blog post that has a little more background than just the process identified in the above link:
https://businessintelligist.com/2015/09/15/power-bi-desktop-merge-query-options/
I hope this leads you to your solution.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 68 | |
| 67 | |
| 33 | |
| 31 | |
| 29 |