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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
DLandr89
Regular Visitor

Issue with Waterfall Ordering

Hey all,

 

I'm attempting to show performance vs budget for the year using a waterfall, and though I now am able to show it bridge, PBI orders the months to make a symmetric bridge rather than order by date, and I don't have the option to choose to sort by date.  I have  a feeling I need to add a rankx in to my expression, but I'm not sure where to insert it.

 

I'm looking to make something similar to  this excel chart: 

DLandr89_2-1666304175410.png

 

PBI output I've gotten so far below

 

DLandr89_0-1666303916177.png

 

DLandr89_1-1666303975684.png

 

DAX Below

 

___BVA2 =
SWITCH (
    SELECTEDVALUE ( 'T2'[Order] ),
    1,
        SWITCH (
            SELECTEDVALUE ( 'Month Table'[Month] ),
            "January", -1 * [Budget v Actual '22 total for January],
            "February", -1 * [Budget v Actual '22 total for February],
            "March", -1 * [Budget v Actual '22 total for March],
            "April", -1 * [Budget v Actual '22 total for April],
            "May", -1 * [Budget v Actual '22 total for May],
            "June", -1 * [Budget v Actual '22 total for June],
            "July", -1 * [Budget v Actual '22 total for July],
            "August", -1 * [Budget v Actual '22 total for August],
            "September", -1 * [Budget v Actual '22 total for September],
            "October", -1 * [Budget v Actual '22 total for October],
            "November", -1 * [Budget v Actual '22 total for November],
            "December", -1 * [Budget v Actual '22 total for December],
            SUM ( Costs[FBUD 2022] )),
             2,
            SWITCH (
                SELECTEDVALUE ( 'Month Table'[Month] ),
                "January", 0,
                "February", 0,
                "March", 0,
                "April", 0,
                "May", 0,
                "June", 0,
                "July", 0,
                "August", 0,
                "September", 0,
                "October", 0,
                "November", 0,
                "December", 0,
                SUM ( Costs[ACT] )
            )
        )

Thanks you for your time,
 
-D
3 REPLIES 3
v-yinliw-msft
Community Support
Community Support

Hi @DLandr89 ,

 

You can try this:

In the Power Query, add an index Column:

vyinliwmsft_0-1666576407510.png

And then add the index column to here:

vyinliwmsft_1-1666576929722.png

vyinliwmsft_2-1666576960541.png

I just test for the sort so don't care about the data.

vyinliwmsft_3-1666577016462.png

Here is the result.

 

Is that what you expect?

Hope this helps you.

 

Best Regards,

Community Support Team _Yinliw

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

 

 

DLandr89
Regular Visitor

I've tried using 2 different tables to get a sort order to stick and it remains the same.

 

DLandr89_0-1666357525178.png  

DLandr89_1-1666357573887.png

 

 

MDodds
Resolver II
Resolver II

I think you need to create a second table for the sort order - then link this to your above data table but use the labels from the new table for the waterfall visual.

 

MDodds_0-1666313014635.png

 

As for the YTD Actual - this will be the total column generated by the visual itself - so I don't think it should be in your data table at all. If you need to display the YTD actual in other visuals you should do so with a measure.

 

 

Helpful resources

Announcements
Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.