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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
woolf
Frequent Visitor

X-Axis Category accumulated values

Hi,

 

I'm fighting with a problem to show the accumulated values in a line chart based on "Categories"

Line chart and accumulated values only works with Sorter and Measure based on Amount to get the "Total cars in stock" but I lose in the X-Axis the clear brand name. 

 
Helper =
VAR Value_1= SELECTEDVALUE(Tabelle[Sorter])
RETURN
CALCULATE (
    SUM(Tabelle[Amount]),
    FILTER ( ALL (Tabelle[Sorter]), Tabelle[Sorter]<=Value_1 ))
 
AmountBrandSorter
333Audi1
123Tesla2
62BMW3
34BYD4
21Lucid5
17Volkwagen6
12Mercedes7
4Renault8
2Nissan9

woolf_0-1729761168368.png

Maybe someone has some solution.

 

./Florian

1 ACCEPTED SOLUTION
SamWiseOwl
Super User
Super User

Hi @woolf 

Helper =
VAR Value_1= SELECTEDVALUE(Tabelle[Sorter])
RETURN
CALCULATE (
    SUM(Tabelle[Amount]),
    FILTER ( ALL (Tabelle[Sorter],Tabelle[Company]), Tabelle[Sorter]<=Value_1 ))
 
When sorting a column by another they become linked in the data. 
You need to remove the filter caused by both.

If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

View solution in original post

1 REPLY 1
SamWiseOwl
Super User
Super User

Hi @woolf 

Helper =
VAR Value_1= SELECTEDVALUE(Tabelle[Sorter])
RETURN
CALCULATE (
    SUM(Tabelle[Amount]),
    FILTER ( ALL (Tabelle[Sorter],Tabelle[Company]), Tabelle[Sorter]<=Value_1 ))
 
When sorting a column by another they become linked in the data. 
You need to remove the filter caused by both.

If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Helpful resources

Announcements
December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.