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.
Dear all,
I have a run into a problem which I would like to ask for some assistance:
My query looks like this:
Index Article Model New column
1 A F1
2 B F2
3 C
4 D
5 E F3
6 F F4
In my new column i would like to add the model. For each line with a blank field in column "Model" I would like to add the most recently used model. The resulting column should look like this:
New Column
F1
F2
F2
F2
F3
F4
Can anyone help with this? Thanks!
Solved! Go to Solution.
@samohtfrd your problem is that the blank values are actually empty strings, they need to be null for FillDown to work. (That is, an empty string is still considered a value.)
Before you do the FillDown, right click the column and choose "Replace Values". Leave "Values To Find" blank, and under "Replace With" put the word null
Hi There,
It is pretty simple and one step process.
In the Query Editor, Go to Transform Tab and select Fill, Fill Down.
This will solve your Problem.
Thanks & Regards,
Bhavesh
Dear Bhavesh,
I tried your solution. At first I tried in my original dataset (the example in my post was generalized because of confidential nature of original data), however this did ot yield nay result (the option fill down/up didn't do anything). Then I replicated you printscreen and tried again without any succes:
Can you see what I am doing wrong?
Thanks!
@samohtfrd your problem is that the blank values are actually empty strings, they need to be null for FillDown to work. (That is, an empty string is still considered a value.)
Before you do the FillDown, right click the column and choose "Replace Values". Leave "Values To Find" blank, and under "Replace With" put the word null
Thanks for the help! problem solved!
Hi There,
What do you mean by most recently used?
By most recently used i mean the last value in the column "model".
The goal is to, in case of a blank field in "Model", make a formula search for the value in the line above. If that one is empty, search another line above etc. until it finds a value.
I tried using LASTNONBLANK but this formula doesn't seem to give the desired results.
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 |
---|---|
113 | |
99 | |
80 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |