Forum Discussion

kala2's avatar
kala2
Helper III
4 years ago
Solved

Line stacked chart repeating x-axis columns

Hello, I have the following stacked line chart which has been drilled down to year and month in order to show Sum of costs. Each category is a running total of costs per month  I hav...
  • v-yanjiang-msft's avatar
    4 years ago

    Hi kala2 ,

    According to your description, the visual show the running total value, I think when the [Amount] is 0 caused the repeating columns.

    You can modify the formula like this:

     

    Column =
    VAR _Total =
        SUMX (
            FILTER (
                Table1,
                EARLIER ( Table1[Group] ) = Table1[Group]
                    && EARLIER ( Table1[Index] ) >= Table1[Index]
            ),
            Table1[Amount]
        )
    RETURN
        IF ( Table1[Amount] = 0, BLANK (), _Total )
    

     

    Best Regards,
    Community Support Team _ kalyj

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.