<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Dynamic Waterfall Graph based on Start and End Date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Waterfall-Graph-based-on-Start-and-End-Date/m-p/5178829#M187972</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="382564" data-lia-user-login="kjohnanand" class="lia-mention lia-mention-user"&gt;kjohnanand&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;The most probable reason your chart looks broken is purely a &lt;STRONG&gt;sorting issue&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;A waterfall chart calculates left-to-right based on the visual order, so it is currently trying to subtract your losses before it even establishes the starting amount.&lt;/P&gt;&lt;P&gt;Here is how to fix it so it flows chronologically:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Sort the Category Column in the Data Model&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Go to the &lt;STRONG&gt;Table View&lt;/STRONG&gt; (Data View) on the left sidebar of Power BI.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Select your Waterfall Sort table.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Click on the Category column header to highlight it.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;In the ribbon at the top (under the Column tools tab), click &lt;STRONG&gt;Sort by column&lt;/STRONG&gt; and select your Order column. This forces Power BI to sort the text based on your 1, 2, 3 numbering.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;2. Update the Visual Sort Settings&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Go back to your report canvas and select the waterfall chart.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Click the &lt;STRONG&gt;More options (...)&lt;/STRONG&gt; icon in the top right corner of the visual.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Hover over &lt;STRONG&gt;Sort axis&lt;/STRONG&gt; and select &lt;STRONG&gt;Category&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Click the &lt;STRONG&gt;(...)&lt;/STRONG&gt; icon one more time, hover over &lt;STRONG&gt;Sort axis&lt;/STRONG&gt;, and ensure &lt;STRONG&gt;Sort ascending&lt;/STRONG&gt; is checked.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Once you do this, your X-axis will snap into the correct order: &lt;I&gt;Starting Amount -&amp;gt; Wins -&amp;gt; Losses -&amp;gt; Total&lt;/I&gt;.&lt;/P&gt;&lt;P&gt;Your DAX for the Waterfall Value is perfect. Because you multiplied [Waterfall Losses] by -1, it will correctly drop down as a red bar. The native "Total" bar at the end will then automatically calculate your Ending Amount (Starting Amount + Wins - Losses).&lt;/P&gt;&lt;P&gt;Give that a try.&lt;BR /&gt;&lt;BR /&gt;If this solves your problem, give it a kudo and mark this as a solution.&lt;BR /&gt;@me so that i don't loose your thread.&lt;/P&gt;</description>
    <pubDate>Wed, 06 May 2026 19:36:11 GMT</pubDate>
    <dc:creator>mizan2390</dc:creator>
    <dc:date>2026-05-06T19:36:11Z</dc:date>
    <item>
      <title>Dynamic Waterfall Graph based on Start and End Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Waterfall-Graph-based-on-Start-and-End-Date/m-p/3569322#M156116</link>
      <description>&lt;P&gt;I'm trying to create a waterfall graph that tracks client wins/losses over a time period selected by a date slider. I'm using a switch/selected value combo function in order to achieve this but I can't get it to work properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the switch function:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's one of the measures that the switch function is bringing in (all are the same as this, just with different filters):&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My data is unpivoted so date is in one column and active/inactive is in another column. 1 means the client is active and 0 means the client is not active.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are my sort and category tables:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what I'm inputting into the waterfall boxes:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the end result:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong here?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 21:00:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Waterfall-Graph-based-on-Start-and-End-Date/m-p/3569322#M156116</guid>
      <dc:creator>kjohnanand</dc:creator>
      <dc:date>2023-12-05T21:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Waterfall Graph based on Start and End Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Waterfall-Graph-based-on-Start-and-End-Date/m-p/5178829#M187972</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="382564" data-lia-user-login="kjohnanand" class="lia-mention lia-mention-user"&gt;kjohnanand&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;The most probable reason your chart looks broken is purely a &lt;STRONG&gt;sorting issue&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;A waterfall chart calculates left-to-right based on the visual order, so it is currently trying to subtract your losses before it even establishes the starting amount.&lt;/P&gt;&lt;P&gt;Here is how to fix it so it flows chronologically:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Sort the Category Column in the Data Model&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Go to the &lt;STRONG&gt;Table View&lt;/STRONG&gt; (Data View) on the left sidebar of Power BI.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Select your Waterfall Sort table.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Click on the Category column header to highlight it.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;In the ribbon at the top (under the Column tools tab), click &lt;STRONG&gt;Sort by column&lt;/STRONG&gt; and select your Order column. This forces Power BI to sort the text based on your 1, 2, 3 numbering.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;2. Update the Visual Sort Settings&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Go back to your report canvas and select the waterfall chart.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Click the &lt;STRONG&gt;More options (...)&lt;/STRONG&gt; icon in the top right corner of the visual.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Hover over &lt;STRONG&gt;Sort axis&lt;/STRONG&gt; and select &lt;STRONG&gt;Category&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Click the &lt;STRONG&gt;(...)&lt;/STRONG&gt; icon one more time, hover over &lt;STRONG&gt;Sort axis&lt;/STRONG&gt;, and ensure &lt;STRONG&gt;Sort ascending&lt;/STRONG&gt; is checked.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Once you do this, your X-axis will snap into the correct order: &lt;I&gt;Starting Amount -&amp;gt; Wins -&amp;gt; Losses -&amp;gt; Total&lt;/I&gt;.&lt;/P&gt;&lt;P&gt;Your DAX for the Waterfall Value is perfect. Because you multiplied [Waterfall Losses] by -1, it will correctly drop down as a red bar. The native "Total" bar at the end will then automatically calculate your Ending Amount (Starting Amount + Wins - Losses).&lt;/P&gt;&lt;P&gt;Give that a try.&lt;BR /&gt;&lt;BR /&gt;If this solves your problem, give it a kudo and mark this as a solution.&lt;BR /&gt;@me so that i don't loose your thread.&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2026 19:36:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Waterfall-Graph-based-on-Start-and-End-Date/m-p/5178829#M187972</guid>
      <dc:creator>mizan2390</dc:creator>
      <dc:date>2026-05-06T19:36:11Z</dc:date>
    </item>
  </channel>
</rss>

