Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi All,
Wondering if the following is possible: In my data set I have 2 columns, Unit and SubUnit. Within each Unit are multiple SubUnits (ex. Unit 2000 - 2001, 2002, 2003.. as SubUnits).
There are instances where within a Unit there is no listed subunit. When that happens, the SubUnit cell is blank. I was wondering if there was a way to put in a formula or script that would detect the blank, and copy over the Unit value into the Subunit (ex. Unit 2300 - blank Subunit... would want to copy over 2300 into the Subunit as well)
Here is a sample of my data:
| Unit | SubUnit |
| 2000 | 2001 |
| 2000 | 2001 |
| 2000 | 2002 |
| 2000 | 2004 |
| 2300 | |
| 2200 | 2201 |
| 2200 | 2203 |
| 2300 | |
| 2300 | |
| 2000 | 2003 |
| 2400 | |
| 2200 | 2202 |
| 2200 | 2201 |
| 2400 | |
| 2200 | 2205 |
Any help/guidance is very much appreciated!
Thanks,
RP
Solved! Go to Solution.
Hi @rpatel-cct ,
To create a calculated column as below.
U = IF(ISBLANK('Table'[SubUnit]),'Table'[Unit],'Table'[SubUnit])
Hi @rpatel-cct ,
To create a calculated column as below.
U = IF(ISBLANK('Table'[SubUnit]),'Table'[Unit],'Table'[SubUnit])
Thank you so much!
Since the blanks will be null when you import that, the easiest thing would to be create a new column with the following and then deleting the original SubUnit
=if [SubUnit] = null then [Unit] else [SubUnit])
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 |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 9 | |
| 8 | |
| 8 | |
| 5 | |
| 5 |