Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
kala2
Helper III
Helper III

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.

kala2_0-1645806474708.png

Each category is a running total of costs per month 

I have created a Running total column

SUMX (
    FILTER (
        Table1,
        EARLIER ( Table1[Group] ) = Table1[Group]
            && EARLIER ( Table1[Index] ) >= Table1[Index]
    ),
    Table1[Amount]
)

 

Is there a way to prevent the repeating columns? 

kala2_1-1645806999898.png

 

Any ideas would be helpful! Thanks!

 

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

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.

View solution in original post

2 REPLIES 2
v-yanjiang-msft
Community Support
Community Support

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.

TheoC
Super User
Super User

Hi @kala2 

 

You should be able to go to the visual and use the Filter Pane to hide any Date period that you do not want or you can use Relative Date in the filter pane to limit the periods you want to show.

 

  1. Click on the visual.
  2. Go to the Filter pane.
  3. Click on Date.
  4. One here, you can click on Filter Type and select the approach you want to take.

 

Hope this helps.

Theo 

 

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.