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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ConsatSudbury
Helper I
Helper I

Continuously adding value of result in graph.

I have a table with bus stop activity for every stop on the route. (ex: 4 in and 2 out.) this would be an ONBOARD change of +2. 

I've managed to show a graph with the average change in th ONBOARD but I heed it to add from the previous.

 

ConsatSudbury_0-1660745457864.png

So, with my selected route, the above shows first stop has an average boarding of 3.35 passengers. The second stop has an average boarding of 1.5 but I want the graph to show the average ONBOARD value of 4.75 (1st stop plus 2nd stop). The next stop has a value of -1.5 so the graph should show ONBOARD 3.25. What is th best way to make this happen?

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @ConsatSudbury 

 

You can create the following measures in the report, then add the second measure to the column chart. 

Average of InOutChange = AVERAGE(Data[InOutChange])
Cumulative InOutChange = 
SUMX (
    FILTER (
        ALLSELECTED ( 'Data'[SequenceInJourney] ),
        'Data'[SequenceInJourney] <= MAX ( 'Data'[SequenceInJourney] )
    ),
    [Average of InOutChange]
)

 

Below is the result of above measures. I haved attached the sample pbix at bottom for your reference. 

vjingzhang_0-1661162572759.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

3 REPLIES 3
v-jingzhang
Community Support
Community Support

Hi @ConsatSudbury 

 

You can create the following measures in the report, then add the second measure to the column chart. 

Average of InOutChange = AVERAGE(Data[InOutChange])
Cumulative InOutChange = 
SUMX (
    FILTER (
        ALLSELECTED ( 'Data'[SequenceInJourney] ),
        'Data'[SequenceInJourney] <= MAX ( 'Data'[SequenceInJourney] )
    ),
    [Average of InOutChange]
)

 

Below is the result of above measures. I haved attached the sample pbix at bottom for your reference. 

vjingzhang_0-1661162572759.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

ConsatSudbury
Helper I
Helper I

Im my data, I have a column for IN, OUT, and another ( IN - OUT ) called InOutChange.

 

amitchandak
Super User
Super User

@ConsatSudbury , In case you need sum of Avg. Assume you have measure Avg

 

Sumx(Values(Table[Stop]), [Avg])

 

If You do not use measure , then use calculate example

 

Sumx(Values(Table[Stop]), calculate(Average(Table[Duration] )) )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.