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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Joel_sony
Frequent Visitor

Data in waterfall chart

Hi all! , 

Joel_sony_0-1735637780476.png

 


I wanted the waterfall chart to show each values in column 'code'  as a bar and the value of bar will be the daysdifference column. But waterfall chart i'm getting is the unique code with summed up value. 

This chart below is showing values only for data_source_id = 1 since i have filtered it.

Joel_sony_1-1735637903380.png

Also i wanted to sort the x axis according to the index column so that the code created comes first in the waterfall chart. 
Is there a solution to this?

1 ACCEPTED SOLUTION

Hi again @Joel_sony 

Sure! I have updated the PBIX file you attached.

The first thing to do is set the Group By Columns property of the code column to index.

Then you can set the Sort By Column property of code to index.

 

I recorded a short video of myself doing this with Tabular Editor 2. You will have to install this first before opening Power BI Desktop for it to appear under External tools.

 

Group By Columns must be set in Tabular Editor, but Sort By Column can be set either in Tabular Editor or Power BI Desktop.

waterfall group by columns.gif

 

OwenAuger_0-1735715116179.png

Does this work for you?


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

View solution in original post

3 REPLIES 3
OwenAuger
Super User
Super User

Hi @Joel_sony 

I think the Group By Columns property provides a convenient solution for this.

Check out this article for some detail on setting the Group By Columns property with Tabular Editor 2 or 3.

 

I have attached a PBIX where I carried out these steps:

  1. Set the Group By Columns property of the code column to index.
    This effectively defines index as a key of code, so that each occurrence of a code value for a different index value is grouped separately on visuals.
  2. Set the Sort By Column property of the code column to index.
  3. Create the Waterfall chart (similar to what you already have)
    • Category = code
    • Y-axis = Days Difference
    • Sort Axis by code Ascending

OwenAuger_0-1735643849289.png

If needed, you could write a measure that hides zeros by converting to blank, but I haven't done that.

 

Does something like this work for you?

Regards


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Your steps look good but I could not sort the code by index as an error popped up. I'm attaching my pbix file here, can you try in this? 

https://drive.google.com/file/d/1587xKz4QMyk6uZKNcz7xpGat-pWyqxzW/view?usp=sharing

Hi again @Joel_sony 

Sure! I have updated the PBIX file you attached.

The first thing to do is set the Group By Columns property of the code column to index.

Then you can set the Sort By Column property of code to index.

 

I recorded a short video of myself doing this with Tabular Editor 2. You will have to install this first before opening Power BI Desktop for it to appear under External tools.

 

Group By Columns must be set in Tabular Editor, but Sort By Column can be set either in Tabular Editor or Power BI Desktop.

waterfall group by columns.gif

 

OwenAuger_0-1735715116179.png

Does this work for you?


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.