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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
afaro
Helper III
Helper III

I want to see the overall positive and negative change instead of just the overall net change?

ProductMarket ValueDate
A3012 June 2024
B4012 June 2024
A1013 June 2024
B5013 June 2024
A5014 June 2024
B7014 June 2024

 

In this example, I would like to see a chart with dates on the X axis and on the y axis, 

I would see for 13 June 2024, 1 bar of +10 (B increased by +10) and 1 bar of -20(A decreased by 20) and then for 14 June 2024, one bar of +60(A increased by +40 and B increased by +20) and no negative bars. I don't care about the individual products, just the positive and negative changes per date shown separate instead of seeing overall net change. 

 

 

 

1 ACCEPTED SOLUTION
xifeng_L
Super User
Super User

Hi @afaro ,

 

Is this what you want?

 

xifeng_L_0-1716006947812.png

 

Demo - I want to see the overall positive and negative change instead of just the overall net change...

 

 

Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !

 

Thank you~

 

View solution in original post

8 REPLIES 8
Anonymous
Not applicable

Hi @afaro 

 

@tharunkumarRTK @xifeng_L Thank you very much for your prompt reply and here allow me to share some of it.

 

I think the point is that you need to add an index column. Here I have added sorted values based on date. Create a column:

 

Rank = 
RANKX(
    'Table', 
    CALCULATE(
        MIN('Table'[Date]), 
        FILTER(
            ALL('Table'), 
            'Table'[Date] = EARLIER('Table'[Date])
        )
    ),
    , 
    ASC, 
    Dense
)

 

vnuocmsft_0-1716187961355.png

 

Then create a measure.

 

Measure = 
var CurrentTotal = 
    CALCULATE(
        SUM('Table'[Market Value]), 
        FILTER(
            ALL('Table'), 
            'Table'[Date] = MAX('Table'[Date])
        )
    )
var Total = 
    CALCULATE(
        SUM('Table'[Market Value]), 
        FILTER(
            ALL('Table'), 
            'Table'[Rank] = MAX('Table'[Rank]) - 1
        )
    )
RETURN
CurrentTotal - Total

 

Create a waterfall chart, and here is the result.

 

vnuocmsft_1-1716188056621.png

 

Regards,

Nono Chen

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

 

tharunkumarRTK
Super User
Super User

@afaro 

You can use waterfall chart 

Screenshot 2024-05-18 at 12.37.54 PM.png

 Here is the sample file: https://drive.google.com/file/d/1qHN2D4MXCcQZW5733quIocvhbzHVMbe6/view?usp=sharing

 


If the post helps please give a thumbs up


If it solves your issue, please accept it as the solution to help the other members find it more quickly.


Tharun

 

This doesn't solve my problem as the number of products I have is huge. I am only concerned about overall positive and overall negative change that makes up the overall net change irrespective of the product. 

@afaro 
Ok,  You can find the updated file here: https://drive.google.com/file/d/11L0FoFKTkOT5JG-uZE3WvAE4Ehh9MFU9/view?usp=share_link
Screenshot 2024-05-18 at 3.43.26 PM.png

 


If the post helps please give a thumbs up


If it solves your issue, please accept it as the solution to help the other members find it more quickly.


Tharun

 

xifeng_L
Super User
Super User

Hi @afaro ,

 

Is this what you want?

 

xifeng_L_0-1716006947812.png

 

Demo - I want to see the overall positive and negative change instead of just the overall net change...

 

 

Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !

 

Thank you~

 

It works well, however, there is an added requirement that I wanted to fulfill. I noticed that this solution doesn't allow me to add more than one measure on a stackedcolumn chart with the legend. Is there a way to build on this solution to do that? 
@xifeng_L 

In order to fulfil your previous requirements, need to be use the legend filed, so it is not possible to continue to add measures.

 

But you can create a field parameter to toggle the measure, which should also work for your analytics needs

This is amazing. Thank you so much! 

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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