<?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: Need help in DAX formula in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-in-DAX-formula/m-p/3717695#M49707</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/313"&gt;@Greg_Deckler&lt;/a&gt;&amp;nbsp;, I am new to DAX queries and i am not sure how the table links works. Please could you create a sample for me if it doen't take much time. This will be of great help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest me some materials for better understanding of DAX queries.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Feb 2024 16:15:33 GMT</pubDate>
    <dc:creator>manojk_pbi</dc:creator>
    <dc:date>2024-02-22T16:15:33Z</dc:date>
    <item>
      <title>Need help in DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-in-DAX-formula/m-p/3717336#M49699</link>
      <description>&lt;P&gt;Hi Friend,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one requirement where in we have some deliver percentage values. I need to recalculate these values using the targets defined to derive normalized values. Providing below a simple example with data. I am not expert in DAX nor in Modeling. Please suggest how this can be achieved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My actual value for the Dec'23 is 86%, have to derive the normalized value using the below Threshold table.&lt;/P&gt;&lt;P&gt;Calculation would be something like below, expected result for 86% is 106%&lt;/P&gt;&lt;P&gt;for 85% it is 100% as per threshold, we need calculate what will the value of 1%.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2023&lt;/P&gt;&lt;P&gt;Threshold&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;(0%)&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;(50%)&lt;/TD&gt;&lt;TD&gt;(100%)&lt;/TD&gt;&lt;TD&gt;(150%)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Delivery&lt;/TD&gt;&lt;TD&gt;72&lt;/TD&gt;&lt;TD&gt;78&lt;/TD&gt;&lt;TD&gt;85&lt;/TD&gt;&lt;TD&gt;93&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 14:25:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-in-DAX-formula/m-p/3717336#M49699</guid>
      <dc:creator>manojk_pbi</dc:creator>
      <dc:date>2024-02-22T14:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-in-DAX-formula/m-p/3717382#M49700</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/487628"&gt;@manojk_pbi&lt;/a&gt;&amp;nbsp;So why exactly does 86% become 106%? How does that work exactly?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 14:38:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-in-DAX-formula/m-p/3717382#M49700</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-02-22T14:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-in-DAX-formula/m-p/3717463#M49701</link>
      <description>&lt;P&gt;The calculation goes like below,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;86 is greater than 85 &amp;amp; less than 93, so 86 is one percent more than the threshold value so we need to calculate the converstion of 1% into the threshold.&lt;/P&gt;&lt;P&gt;ie. 93-85 = 8&lt;/P&gt;&lt;P&gt;150-100=50&lt;/P&gt;&lt;P&gt;Per 1% = (50/8) which is 6.25&lt;/P&gt;&lt;P&gt;there fore, 86% is equal to 106.2%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 14:57:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-in-DAX-formula/m-p/3717463#M49701</guid>
      <dc:creator>manojk_pbi</dc:creator>
      <dc:date>2024-02-22T14:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-in-DAX-formula/m-p/3717509#M49702</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/487628"&gt;@manojk_pbi&lt;/a&gt;&amp;nbsp;JC, glad you explained it because I would have never figured that out from the information provided. Do this (PBIX is attached)&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
    VAR __Value = [December]
    VAR __ThreshMin = MAXX(FILTER('Thresholds', [Value] &amp;lt;= __Value), [Attribute])
    VAR __ThreshMinVal = MAXX(FILTER('Thresholds', [Value] &amp;lt;= __Value), [Value])
    VAR __ThreshMax = MAXX(FILTER('Thresholds', [Value] &amp;gt; __Value), [Attribute])
    VAR __ThreshMaxVal = MAXX(FILTER('Thresholds', [Value] &amp;gt; __Value), [Value])
    VAR __Result =
        SWITCH( TRUE(),
            __ThreshMax = BLANK(), __Value,
            __Value = __ThreshMax, __Value,
            DIVIDE( __ThreshMax - __ThreshMin, __ThreshMaxVal - __ThreshMinVal) * (__Value - __ThreshMinVal ) + __ThreshMin
        )
RETURN
    __Result&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 15:13:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-in-DAX-formula/m-p/3717509#M49702</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-02-22T15:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-in-DAX-formula/m-p/3717632#M49705</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/313"&gt;@Greg_Deckler&lt;/a&gt;&amp;nbsp; for your quick solution. This will help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you suggest how the same can be extended when we have values in table like below across different years.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Year&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;150&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Threshold&lt;/TD&gt;&lt;TD&gt;2023&lt;/TD&gt;&lt;TD&gt;72&lt;/TD&gt;&lt;TD&gt;78&lt;/TD&gt;&lt;TD&gt;85&lt;/TD&gt;&lt;TD&gt;93&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Threshold&lt;/TD&gt;&lt;TD&gt;2024&lt;/TD&gt;&lt;TD&gt;72&lt;/TD&gt;&lt;TD&gt;75&lt;/TD&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;TD&gt;90&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;MonthYear&lt;/TD&gt;&lt;TD&gt;Delivery%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Dec-23&lt;/TD&gt;&lt;TD&gt;86&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Nov-23&lt;/TD&gt;&lt;TD&gt;84&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Oct-23&lt;/TD&gt;&lt;TD&gt;83&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 22 Feb 2024 15:56:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-in-DAX-formula/m-p/3717632#M49705</guid>
      <dc:creator>manojk_pbi</dc:creator>
      <dc:date>2024-02-22T15:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-in-DAX-formula/m-p/3717669#M49706</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/487628"&gt;@manojk_pbi&lt;/a&gt;&amp;nbsp;I would still unpivot the last four columns of that table. Probably create a Year column in your Delivery table and relate that to your thresholds which should also have a straight Year column. After that, things should be very straight-forward.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 16:06:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-in-DAX-formula/m-p/3717669#M49706</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-02-22T16:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-in-DAX-formula/m-p/3717695#M49707</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/313"&gt;@Greg_Deckler&lt;/a&gt;&amp;nbsp;, I am new to DAX queries and i am not sure how the table links works. Please could you create a sample for me if it doen't take much time. This will be of great help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest me some materials for better understanding of DAX queries.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 16:15:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-in-DAX-formula/m-p/3717695#M49707</guid>
      <dc:creator>manojk_pbi</dc:creator>
      <dc:date>2024-02-22T16:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-in-DAX-formula/m-p/3717739#M49708</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/487628"&gt;@manojk_pbi&lt;/a&gt;&amp;nbsp;Updated. See attached PBIX.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
    VAR __Value = MAX('Delivery'[Delivery%])
    VAR __ThreshMin = MAXX(FILTER('Thresholds', [Value] &amp;lt;= __Value), [Attribute])
    VAR __ThreshMinVal = MAXX(FILTER('Thresholds', [Value] &amp;lt;= __Value), [Value])
    VAR __ThreshMax = MAXX(FILTER('Thresholds', [Value] &amp;gt; __Value), [Attribute])
    VAR __ThreshMaxVal = MAXX(FILTER('Thresholds', [Value] &amp;gt; __Value), [Value])
    VAR __Result =
        SWITCH( TRUE(),
            __ThreshMax = BLANK(), __Value,
            __Value = __ThreshMax, __Value,
            DIVIDE( __ThreshMax - __ThreshMin, __ThreshMaxVal - __ThreshMinVal) * (__Value - __ThreshMinVal ) + __ThreshMin
        )
RETURN
    __Result&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 22 Feb 2024 16:32:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-in-DAX-formula/m-p/3717739#M49708</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-02-22T16:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-in-DAX-formula/m-p/3718820#M49719</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/313"&gt;@Greg_Deckler&lt;/a&gt;&amp;nbsp; for this solution.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 05:27:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-in-DAX-formula/m-p/3718820#M49719</guid>
      <dc:creator>manojk_pbi</dc:creator>
      <dc:date>2024-02-23T05:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-in-DAX-formula/m-p/3790193#M50962</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/313"&gt;@Greg_Deckler&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I noticed something strange when the value is more than threshold value eg : in the sample we have taken 93% is equal to 150% but if value is 94 then it should return 150% rather it is returning 9400%. How this can be tweaked ? Same will be applied to lower limit as well.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="manojk_pbi_0-1711411669542.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1066543i747E946C50522F28/image-size/medium?v=v2&amp;amp;px=400" role="button" title="manojk_pbi_0-1711411669542.png" alt="manojk_pbi_0-1711411669542.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 00:08:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-in-DAX-formula/m-p/3790193#M50962</guid>
      <dc:creator>manojk_pbi</dc:creator>
      <dc:date>2024-03-26T00:08:05Z</dc:date>
    </item>
  </channel>
</rss>

