<?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: LastNonBlank value &amp;amp; target value on gauge in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LastNonBlank-value-amp-target-value-on-gauge/m-p/936214#M9802</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;writing your measures like this is sufficient:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Last BOM Value = LASTNONBLANK('Table'[Bom value];0)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and then add the field Detector/Bridge to the visual filter pane of each gauge, and set it to filter to equal to detector and bridge, respectively&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;BR /&gt;Sturla&lt;BR /&gt;&lt;BR /&gt;If this post helps, then please consider Accepting it as the solution. Kudos are nice too.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Feb 2020 22:00:13 GMT</pubDate>
    <dc:creator>sturlaws</dc:creator>
    <dc:date>2020-02-17T22:00:13Z</dc:date>
    <item>
      <title>LastNonBlank value &amp; target value on gauge</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LastNonBlank-value-amp-target-value-on-gauge/m-p/935196#M9726</link>
      <description>&lt;P class="p1"&gt;Sorry for maybe such a basic problem of mine, I'm currently in the learning curve but can't figure out DAX measure so simply yet.&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;I'v got data sample as following:&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;img /&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Would like to vizualize two gauges, actual vs. target values:&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN&gt;- latest non blank 'BOMValue' vs. respective 'BOMTargetValue' (for 'Detector' device only)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;- same for 'Bridge' device only&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;In my mind, it shoud be solved by DAX codes, right? Something like:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Latest Detector BOM = VAR CurrentBOMValue = LASTNONBLANK ('UnitTable'[BOMValue], 0)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN CALCULATE (LASTNONBLANK(UnitTable[BOMValue], 0))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Thanks for a million&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 09:09:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LastNonBlank-value-amp-target-value-on-gauge/m-p/935196#M9726</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-17T09:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: LastNonBlank value &amp; target value on gauge</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LastNonBlank-value-amp-target-value-on-gauge/m-p/936214#M9802</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;writing your measures like this is sufficient:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Last BOM Value = LASTNONBLANK('Table'[Bom value];0)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and then add the field Detector/Bridge to the visual filter pane of each gauge, and set it to filter to equal to detector and bridge, respectively&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;BR /&gt;Sturla&lt;BR /&gt;&lt;BR /&gt;If this post helps, then please consider Accepting it as the solution. Kudos are nice too.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 22:00:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LastNonBlank-value-amp-target-value-on-gauge/m-p/936214#M9802</guid>
      <dc:creator>sturlaws</dc:creator>
      <dc:date>2020-02-17T22:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: LastNonBlank value &amp; target value on gauge</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LastNonBlank-value-amp-target-value-on-gauge/m-p/937058#M9829</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="88633" data-lia-user-login="sturlaws" class="lia-mention lia-mention-user"&gt;sturlaws&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for help, now I understand the idea how to solve it, but this formula gives me errors and I don't know why:&lt;/P&gt;&lt;P&gt;The syntax for ';' is incorrect. (DAX(LASTNONBLANK(UnitTable[BOMValue];0)))&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 10:32:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LastNonBlank-value-amp-target-value-on-gauge/m-p/937058#M9829</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-18T10:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: LastNonBlank value &amp; target value on gauge</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LastNonBlank-value-amp-target-value-on-gauge/m-p/937195#M9840</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="88633" data-lia-user-login="sturlaws" class="lia-mention lia-mention-user"&gt;sturlaws&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Never mind, I figured out the formula problem, it should have "," instead of ";"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I see values on gauge but the next problem is that formula is not giving value of last non blank (last date) but maximum value from column instead&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 12:13:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LastNonBlank-value-amp-target-value-on-gauge/m-p/937195#M9840</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-18T12:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: LastNonBlank value &amp; target value on gauge</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LastNonBlank-value-amp-target-value-on-gauge/m-p/939431#M9959</link>
      <description>&lt;P&gt;sorry, tested on data that were to simplified, so it gave the correct answer for the wrong reason.&lt;BR /&gt;&lt;BR /&gt;Can you try this code instead:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Last BOM Value =
CALCULATE (
    SUM ( Data[BOM Value] ),
    LASTNONBLANK ( 'Data'[Date], CALCULATE ( SUM ( Data[BOM Value] ) ) )
)
&lt;/LI-CODE&gt;
&lt;P&gt;Idealy, 'Data'[Date] should reference a date/calendar table, so if you have one of those, replace this part of the code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 17:49:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LastNonBlank-value-amp-target-value-on-gauge/m-p/939431#M9959</guid>
      <dc:creator>sturlaws</dc:creator>
      <dc:date>2020-02-19T17:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: LastNonBlank value &amp; target value on gauge</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LastNonBlank-value-amp-target-value-on-gauge/m-p/943959#M10183</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="88633" data-lia-user-login="sturlaws" class="lia-mention lia-mention-user"&gt;sturlaws&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much, you helped me to understand the logic how I should think in PBI!&lt;/P&gt;</description>
      <pubDate>Sat, 22 Feb 2020 20:57:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LastNonBlank-value-amp-target-value-on-gauge/m-p/943959#M10183</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-22T20:57:56Z</dc:date>
    </item>
  </channel>
</rss>

