<?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 Calucation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3278948#M121736</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="512762" data-lia-user-login="KristyP" class="lia-mention lia-mention-user"&gt;KristyP&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Can you provide a sample file that clarifies these inconsistencies?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Jun 2023 07:33:54 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-06-12T07:33:54Z</dc:date>
    <item>
      <title>DAX Calucation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3257589#M120347</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two related tables. I am trying to find a value in one table based on a range ( min &amp;amp; max) and a category from the first table. The value I require is in the second table, seperate column for the category and the min &amp;amp; max, the value I require is in a seperate column again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i.e&lt;/P&gt;&lt;P&gt;I have a series of categories, with products that fit into the different categories. Each product has a different (and known) amount of usage. The related table contains a list of products and value based on usage (the value is based on a range e.g 2400 - 7200, there are several different ranges depending on category and usage).&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 07:42:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3257589#M120347</guid>
      <dc:creator>KristyP</dc:creator>
      <dc:date>2023-05-29T07:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Calucation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3257625#M120353</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="512762" data-lia-user-login="KristyP" class="lia-mention lia-mention-user"&gt;KristyP&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I might be better if you start with a sample data of both tables, indication the relationship if (exist) along with the expected result.&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 08:05:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3257625#M120353</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-29T08:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Calucation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3258503#M120409</link>
      <description>&lt;P&gt;I have provided very basic form of the data I have to work with.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 00:18:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3258503#M120409</guid>
      <dc:creator>KristyP</dc:creator>
      <dc:date>2023-05-30T00:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Calucation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3258990#M120451</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="512762" data-lia-user-login="KristyP" class="lia-mention lia-mention-user"&gt;KristyP&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Value =
MAXX (
    FILTER (
        Table2,
        Table2[Product Group] = Table1[Product Group]
            &amp;amp;&amp;amp; Table2[Min Usage Range] &amp;lt;= Table1[Usage]
            &amp;amp;&amp;amp; Table2[Max Usage Range] &amp;gt;= Table1[Usage]
    ),
    Table2[Value]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 30 May 2023 06:57:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3258990#M120451</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-30T06:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Calucation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3259063#M120454</link>
      <description>&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried your solution, but am getting the followinf error:&lt;/P&gt;&lt;P&gt;A single value for column 'Product Group' in table 1 cannot be determined. This can happen when a measure refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 07:42:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3259063#M120454</guid>
      <dc:creator>KristyP</dc:creator>
      <dc:date>2023-05-30T07:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Calucation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3259151#M120460</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="512762" data-lia-user-login="KristyP" class="lia-mention lia-mention-user"&gt;KristyP&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;This is supposed to be a calculated column in Table1 not a measure.&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 08:26:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3259151#M120460</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-30T08:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Calucation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3259653#M120487</link>
      <description>&lt;P&gt;first make the measure of total sales.&lt;BR /&gt;then create one table which include all ranges according to your range you want.&lt;/P&gt;&lt;P&gt;then use this measure:&lt;/P&gt;&lt;P&gt;rangevalues = Calculate([totalsale measure name],&lt;BR /&gt;VAR currentrange=&lt;/P&gt;&lt;P&gt;FILTER(&lt;/P&gt;&lt;P&gt;table1,table2,&lt;/P&gt;&lt;P&gt;AND(tablename[value]&amp;lt;=range tablename,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tablename[value]&amp;gt;=range tablename))&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;&amp;nbsp; rangevalue&lt;BR /&gt;)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 12:19:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3259653#M120487</guid>
      <dc:creator>devanshi</dc:creator>
      <dc:date>2023-05-30T12:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Calucation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3260653#M120545</link>
      <description>&lt;P&gt;My apologies, I misunderstood.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried this, but getting this error:&lt;/P&gt;&lt;P&gt;DAX expression operations do not support comparing values of type text with values of type integer. Consider the VALUE or FORMAT function to convert one of the values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have changed the Usage and value to text for the moment, which worked. Just concerned how this affect other calculation moving forward. Is there a better way to do this?&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 01:18:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3260653#M120545</guid>
      <dc:creator>KristyP</dc:creator>
      <dc:date>2023-05-31T01:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Calucation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3278612#M121714</link>
      <description>&lt;P&gt;With reference to the total sales measure, which column from which table are you referring to?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 03:39:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3278612#M121714</guid>
      <dc:creator>KristyP</dc:creator>
      <dc:date>2023-06-12T03:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Calucation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3278911#M121732</link>
      <description>&lt;P&gt;I haved used this calculation. But there are some issues with it not always picking up the correct value. This issue does not seem relate to any one particular Product Goup or band. Any ideas what could be casuing this issue?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 07:16:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3278911#M121732</guid>
      <dc:creator>KristyP</dc:creator>
      <dc:date>2023-06-12T07:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Calucation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3278948#M121736</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="512762" data-lia-user-login="KristyP" class="lia-mention lia-mention-user"&gt;KristyP&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Can you provide a sample file that clarifies these inconsistencies?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 07:33:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3278948#M121736</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-12T07:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Calucation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3278959#M121737</link>
      <description>&lt;P&gt;I need to protect the information for work purposes. But I will complete a sample file tomorrow and send it through.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 07:37:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3278959#M121737</guid>
      <dc:creator>KristyP</dc:creator>
      <dc:date>2023-06-12T07:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Calucation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3280780#M121864</link>
      <description>&lt;P&gt;I have done this very quickly, please see below&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I made sure there was a relationship between the two tables&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 04:40:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3280780#M121864</guid>
      <dc:creator>KristyP</dc:creator>
      <dc:date>2023-06-13T04:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Calucation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3280823#M121866</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="512762" data-lia-user-login="KristyP" class="lia-mention lia-mention-user"&gt;KristyP&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Would you please share a download link of this sample file?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 05:19:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3280823#M121866</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-13T05:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Calucation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3280850#M121869</link>
      <description>&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1YRtPCnyg-m7PylEVKGYkIADYahU3amWB/view?usp=drive_link" target="_blank"&gt;https://drive.google.com/file/d/1YRtPCnyg-m7PylEVKGYkIADYahU3amWB/view?usp=drive_link&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if this will work&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 05:34:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3280850#M121869</guid>
      <dc:creator>KristyP</dc:creator>
      <dc:date>2023-06-13T05:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Calucation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3281063#M121879</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="512762" data-lia-user-login="KristyP" class="lia-mention lia-mention-user"&gt;KristyP&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;The reason you're getting blanks is that the Names of the groups in the two tables do not match: One table says "Product A" and the other says "Product Group A" and so on. I created a new group column just to get itt work.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 07:20:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3281063#M121879</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-13T07:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Calucation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3282579#M121950</link>
      <description>&lt;P&gt;Sorry, this is something I double checked in the actual one. The names are all correct. I can not find any consistency with the error. I will have 20 for one product gorup, 15 will read correct 1 will be blank and the rest reading incorrectly.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 01:04:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3282579#M121950</guid>
      <dc:creator>KristyP</dc:creator>
      <dc:date>2023-06-14T01:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Calucation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3283478#M121989</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="512762" data-lia-user-login="KristyP" class="lia-mention lia-mention-user"&gt;KristyP&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Let's connect via teams or zoom if possible.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 10:37:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3283478#M121989</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-14T10:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Calucation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3284723#M122088</link>
      <description>&lt;P&gt;Sure, I can do this tomorrow.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 00:34:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calucation/m-p/3284723#M122088</guid>
      <dc:creator>KristyP</dc:creator>
      <dc:date>2023-06-15T00:34:24Z</dc:date>
    </item>
  </channel>
</rss>

