Forum Discussion
gsksarepta
2 years agoHelper II
Help on Missing data fill techniques
Hi, I have table like this in PowerBI I need to fill the missing values in 4th column based on the respective values step3afin column.. for example. Here is the before after table I am hoping to get ...
- Anonymous2 years ago
Hi gsksarepta ,
Please try to create a new column with below dax formula:
newresult = VAR _step3 = [step3afin] VAR _a = CALCULATE ( MAX ( 'Table'[step4aex] ), FILTER ( 'Table', [step3afin] = _step3 ) ) RETURN _aPlease refer the attached .pbix file.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
bhanu_gautam
2 years agoSuper User
gsksarepta , Try using this method
newresult =
VAR CurrentRow = YourTable[step4aex]
VAR NonEmptyValues =
FILTER(
YourTable,
YourTable[step3afin] = CurrentRow
&& NOT(ISBLANK(YourTable[step4aex]))
)
VAR Result =
IF(
COUNTROWS(NonEmptyValues) > 0,
CALCULATE(
MAXX(NonEmptyValues, NonEmptyValues[step4aex])
),
BLANK()
)
RETURN Result
Please accept as solution and give kudos if it helps
gsksarepta
2 years agoHelper II
Thanks, I will try this and reach out.