<?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: DAX QUERY to Use the Previous column value or the Grand total value in the empty column cells. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-QUERY-to-Use-the-Previous-column-value-or-the-Grand-total/m-p/3476423#M132797</link>
    <description>&lt;P&gt;Please restate your expected outcome based on the sample data you provided.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Oct 2023 22:35:06 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2023-10-13T22:35:06Z</dc:date>
    <item>
      <title>DAX QUERY to Use the Previous column value or the Grand total value in the empty column cells.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-QUERY-to-Use-the-Previous-column-value-or-the-Grand-total/m-p/3470492#M132505</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;Everyone&lt;BR /&gt;&lt;BR /&gt;I have attached a link to the previous issue thread for your better understanding,&amp;nbsp;&lt;BR /&gt;Link:&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-Calculate-Percentage/m-p/3445249#M131063" target="_blank"&gt;https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-Calculate-Percentage/m-p/3445249#M131063&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I have achieved results as follows&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now,&amp;nbsp;&lt;BR /&gt;I would like to use the Grand Total average values in the empty cells in the column, or the values above or below in the column.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I tried to use MAX, Earlier functions but they are used only if I have a calculated column. I have created a measure for the previously suggested formula. Tried to create a calculated column but isn't working correctly.&lt;BR /&gt;&lt;BR /&gt;Any ideas for the same will be highly appreciated,&amp;nbsp;&lt;BR /&gt;Looking forward to any ideas and suggestions, thanks.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Kind Regards&lt;BR /&gt;ShaGuna&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 06:59:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-QUERY-to-Use-the-Previous-column-value-or-the-Grand-total/m-p/3470492#M132505</guid>
      <dc:creator>ShaGuna32</dc:creator>
      <dc:date>2023-10-11T06:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: DAX QUERY to Use the Previous column value or the Grand total value in the empty column cells.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-QUERY-to-Use-the-Previous-column-value-or-the-Grand-total/m-p/3474544#M132716</link>
      <description>&lt;P&gt;DAX has no concept of "previous column".&amp;nbsp; Unpivot your data to make it suitable for processing in Power BI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue. &lt;BR /&gt;If you are unsure how to do that please refer to &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;If you want to get answers faster please refer to &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 01:47:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-QUERY-to-Use-the-Previous-column-value-or-the-Grand-total/m-p/3474544#M132716</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-10-13T01:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: DAX QUERY to Use the Previous column value or the Grand total value in the empty column cells.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-QUERY-to-Use-the-Previous-column-value-or-the-Grand-total/m-p/3474897#M132730</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good day,&amp;nbsp;&lt;BR /&gt;Thanks for reaching out, much appreciated.&lt;BR /&gt;&lt;BR /&gt;As advised, I have attached a document for your kind reference with the sample raw data and achieved and expected results.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;DAX Formula used to Calculate the Material Grade %,&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;M % = 
VAR _vendor =
    SELECTEDVALUE ( 'Table'[Vendor] )
VAR _per =
    COUNT ( 'Table'[Material grade] )
VAR _total =
    CALCULATE (
        COUNT ( 'Table'[Material grade ),
        FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Vendor] = _vendor )
    )
RETURN
    DIVIDE ( _per, _total )&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Trying to&lt;/STRONG&gt;:&amp;nbsp;For those Material grade % in a vendor are empty I wanted to use that particular vendor's total average values in the empty material grade % for those product racks. (Refer to Attached document)&lt;BR /&gt;&lt;A title="Reference Data" href="https://docs.google.com/spreadsheets/d/1Rg0ZHW4G36sxZXdCjneHENBEu2pm-XA_/edit?usp=sharing&amp;amp;ouid=115971939741028185369&amp;amp;rtpof=true&amp;amp;sd=true" target="_self"&gt;https://docs.google.com/spreadsheets/d/1Rg0ZHW4G36sxZXdCjneHENBEu2pm-XA_/edit?usp=sharing&amp;amp;ouid=115971939741028185369&amp;amp;rtpof=true&amp;amp;sd=true&lt;/A&gt;&amp;nbsp;&lt;A title="Reference" href="https://docs.google.com/spreadsheets/d/1IGKIIruuhrorMDcolK1qTFCaULOED-Ks/edit?usp=sharing&amp;amp;ouid=118247509732557767896&amp;amp;rtpof=true&amp;amp;sd=true" target="_self"&gt;https://docs.google.com/spreadsheets/d/1IGKIIruuhrorMDcolK1qTFCaULOED-Ks/edit?usp=sharing&amp;amp;ouid=118247509732557767896&amp;amp;rtpof=true&amp;amp;sd=true&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Looking forward to your reply, thanks again,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;BR /&gt;ShaGuna&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 06:36:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-QUERY-to-Use-the-Previous-column-value-or-the-Grand-total/m-p/3474897#M132730</guid>
      <dc:creator>ShaGuna32</dc:creator>
      <dc:date>2023-10-13T06:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: DAX QUERY to Use the Previous column value or the Grand total value in the empty column cells.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-QUERY-to-Use-the-Previous-column-value-or-the-Grand-total/m-p/3476333#M132793</link>
      <description>&lt;P&gt;Can you please explain why you need the repeated rows?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 20:35:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-QUERY-to-Use-the-Previous-column-value-or-the-Grand-total/m-p/3476333#M132793</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-10-13T20:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: DAX QUERY to Use the Previous column value or the Grand total value in the empty column cells.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-QUERY-to-Use-the-Previous-column-value-or-the-Grand-total/m-p/3476413#M132795</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sorry, That's my mistake.&lt;BR /&gt;The same Product racks won't repeat, I just wanted to show my expected result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate your time and effort, looking forward to some ideas, thanks.&lt;BR /&gt;&lt;BR /&gt;ShaGuna&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 22:21:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-QUERY-to-Use-the-Previous-column-value-or-the-Grand-total/m-p/3476413#M132795</guid>
      <dc:creator>ShaGuna32</dc:creator>
      <dc:date>2023-10-13T22:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: DAX QUERY to Use the Previous column value or the Grand total value in the empty column cells.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-QUERY-to-Use-the-Previous-column-value-or-the-Grand-total/m-p/3476423#M132797</link>
      <description>&lt;P&gt;Please restate your expected outcome based on the sample data you provided.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 22:35:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-QUERY-to-Use-the-Previous-column-value-or-the-Grand-total/m-p/3476423#M132797</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-10-13T22:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: DAX QUERY to Use the Previous column value or the Grand total value in the empty column cells.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-QUERY-to-Use-the-Previous-column-value-or-the-Grand-total/m-p/3476425#M132798</link>
      <description>&lt;P&gt;I have calculated Material Grade% for those Product racks which has historical material grade using the above formula. But there are some new products in the data, which has no historical data. So, I want to use that vendor's Average material grade % ( Column grand total in the sample data) for those product racks which has no material grade %.&amp;nbsp;&lt;BR /&gt;It will allow me to process my report further analysis.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 22:44:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-QUERY-to-Use-the-Previous-column-value-or-the-Grand-total/m-p/3476425#M132798</guid>
      <dc:creator>ShaGuna32</dc:creator>
      <dc:date>2023-10-13T22:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: DAX QUERY to Use the Previous column value or the Grand total value in the empty column cells.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-QUERY-to-Use-the-Previous-column-value-or-the-Grand-total/m-p/3476447#M132799</link>
      <description>&lt;P&gt;To report on things that are not there you need to use disconnected tables and cross joins.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;see attached&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 23:33:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-QUERY-to-Use-the-Previous-column-value-or-the-Grand-total/m-p/3476447#M132799</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-10-13T23:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: DAX QUERY to Use the Previous column value or the Grand total value in the empty column cells.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-QUERY-to-Use-the-Previous-column-value-or-the-Grand-total/m-p/3476459#M132800</link>
      <description>&lt;P&gt;The material Grade % is a measure, Due to large data the calculated column is not providing the expected result. So I have created it as a measure. The DAX formula you have suggested will work if the material grade % is a column. I cannot sum or average the measure.&amp;nbsp;&lt;BR /&gt;That's is biggest issue here! any ideas on this?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 23:58:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-QUERY-to-Use-the-Previous-column-value-or-the-Grand-total/m-p/3476459#M132800</guid>
      <dc:creator>ShaGuna32</dc:creator>
      <dc:date>2023-10-13T23:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: DAX QUERY to Use the Previous column value or the Grand total value in the empty column cells.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-QUERY-to-Use-the-Previous-column-value-or-the-Grand-total/m-p/3476461#M132801</link>
      <description>&lt;P&gt;Use the measure as is ( remove the aggregation functions)&amp;nbsp; or - better - recreate the business logic in the new measure.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Oct 2023 00:01:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-QUERY-to-Use-the-Previous-column-value-or-the-Grand-total/m-p/3476461#M132801</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-10-14T00:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: DAX QUERY to Use the Previous column value or the Grand total value in the empty column cells.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-QUERY-to-Use-the-Previous-column-value-or-the-Grand-total/m-p/3479980#M133009</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The proposed method didn't work.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have to remodel the entire work from scratch and will try again. I will keep you posted.&lt;BR /&gt;Thanks&amp;nbsp;&lt;BR /&gt;ShaGuna&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 01:35:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-QUERY-to-Use-the-Previous-column-value-or-the-Grand-total/m-p/3479980#M133009</guid>
      <dc:creator>ShaGuna32</dc:creator>
      <dc:date>2023-10-17T01:35:34Z</dc:date>
    </item>
  </channel>
</rss>

