Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi,
How can i fill down the values of Tonnes Line?. I have asked this Q before with no luck, hence asking again...TIA
Solved! Go to Solution.
Hi @kumsha1 ,
For calculated column, you can create a new column for it:
New PROGRESSIVE_TONNES = 
VAR LastNonBlankIndex =
    CALCULATE (
        LASTNONBLANK ( TRANSHIPPER_DETAILS[Index], 1 ),
        FILTER (
            ALL ( TRANSHIPPER_DETAILS ),
            TRANSHIPPER_DETAILS[Index] <= EARLIER ( TRANSHIPPER_DETAILS[Index] )
                && NOT ( ISBLANK ( TRANSHIPPER_DETAILS[PROGRESSIVE_TONNES] ) )
        )
    )
RETURN
    CALCULATE (
        SUM ( TRANSHIPPER_DETAILS[Value] ),
        FILTER ( ALL ( TRANSHIPPER_DETAILS ), TRANSHIPPER_DETAILS[Index] = LastNonBlankIndex )
    )
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Hi @kumsha1 ,
For calculated column, you can create a new column for it:
New PROGRESSIVE_TONNES = 
VAR LastNonBlankIndex =
    CALCULATE (
        LASTNONBLANK ( TRANSHIPPER_DETAILS[Index], 1 ),
        FILTER (
            ALL ( TRANSHIPPER_DETAILS ),
            TRANSHIPPER_DETAILS[Index] <= EARLIER ( TRANSHIPPER_DETAILS[Index] )
                && NOT ( ISBLANK ( TRANSHIPPER_DETAILS[PROGRESSIVE_TONNES] ) )
        )
    )
RETURN
    CALCULATE (
        SUM ( TRANSHIPPER_DETAILS[Value] ),
        FILTER ( ALL ( TRANSHIPPER_DETAILS ), TRANSHIPPER_DETAILS[Index] = LastNonBlankIndex )
    )
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
@kumsha1 , if they are column you have an option in power query same as excel to fill down the values
refer:https://www.excelcampus.com/powerquery/fill-down-blank-null-cells-power-query/
https://docs.microsoft.com/en-us/power-query/fill-values-column
Hi @amitchandak ,
Its required in a calculated column/measure then i have a requirement to cal. earlier values of this Tonne Line and use this in other calculations.
RunningMax(Tonnes Line) - Earlier(Tonnes Lines)
Below is the required output.
Please provide the expression for the Tonnes Line measure.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Hi @mahoneypat ,
Below is the formula, i have this as calculated column/measure.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.