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'm looking to understand how to filldown (or up) a column with a if condition, using PowerBI. As you can see i have a "string_values" with null values. When the instance are the same (same number), i want to fill the string values.
I tried this code but he doesn't work :
Solved! Go to Solution.
is this what you want?
Column =
VAR _text=maxx(FILTER(asmt_assessment_instance_question,asmt_assessment_instance_question[instance.task_id.number]=EARLIER(asmt_assessment_instance_question[instance.task_id.number])),asmt_assessment_instance_question[string_value])
return _text
Proud to be a Super User!
Hi @SRP
@ryan_mayu 's solution should work. Have you tried it? If you have solved it, accept a proper reply as solution or share your own solution if there is a better one. This will help the community! Thank you.
Best Regards,
Community Support Team _ Jing
is this what you want?
Column =
VAR _text=maxx(FILTER(asmt_assessment_instance_question,asmt_assessment_instance_question[instance.task_id.number]=EARLIER(asmt_assessment_instance_question[instance.task_id.number])),asmt_assessment_instance_question[string_value])
return _text
Proud to be a Super User!
Exactly !
In first i saw only the screen and not the column. When i try it, the error is :
"EARLIER/EARLIEST refers to an earlier row context which doesn't exist"
are you using a DAX to create a column?
Proud to be a Super User!
I tried with DAX yes but it doesn't work either. But i almost did it with Power Query, still doesn't work anyway
pls see the attachment below.
Proud to be a Super User!
@SRP , You have fill up and fill down option in power query.
You are using a dax column, there the logic needs to be based on column have to value.
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
I don't really know how to share that, but i got you a excel file with usefull data here :
I tried to do it with Power Query but i can't incorporate the if condition with
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 |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |