Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have 20 million rows loaded. I want to replace null values from Column B. The value to be replaced will depends on what value is indicated on the column a.
Example:
For null values,
1 = W
4 = E
and so on..
Please take note that null values are many. And the null values is not limited to two only.
Just new to power bi desktop. please guide me. How should I do this?
Solved! Go to Solution.
Hi @Anonymous,
Did you get any error messages? Or it returns wrong results?
Maybe this one.
Result_Column = IF ( [Column B] = blank(), LOOKUPVALUE ( 'FixTable'[Letter], 'FixTable'[Number], [Column A] ), [Column B] )
Best Regards,
Hi @Anonymous,
Where are all the replacements? In other words, where is "1 = W 4 = E" from? It could be like this one.
Result_Column = IF ( ISBLANK ( [Column B] ), LOOKUPVALUE ( 'replacementsTable'[result], 'replacementsTable'[Column A], [Column A] ), [Column B] )
Best Regards,
it will come from a separate table called "FixTable" and here is the sample data inside it. Data in the "FixTable" are only those numbers with blank letters.
I tried using your code but it did not work. can you check what was wrong with it?
Result_Column = IF ( ISBLANK ( [Column B] ), LOOKUPVALUE ( 'FixTable'[Letter], 'FixTable'[Number], [Column A] ), [Column B] )
Hi @Anonymous,
Did you get any error messages? Or it returns wrong results?
Maybe this one.
Result_Column = IF ( [Column B] = blank(), LOOKUPVALUE ( 'FixTable'[Letter], 'FixTable'[Number], [Column A] ), [Column B] )
Best Regards,
Hi,
Create a lookup table and then join your existing Table with the look up Table.
apologies but i cannot figure out how should i make a look up table for this.
i have 20 millions rows.
Hi,
Since there are multiple null values, you will have to tell the software what should go in place of each such cell. So there will have to be an input table of 2 columns with column 1 values from your existing table. The second column should be the result you want.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
96 | |
77 | |
63 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |