<?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 Help translating a microsoft DAX statement to Qlik expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Help-translating-a-microsoft-DAX-statement-to-Qlik-expression/m-p/1505575#M36176</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this expression in a microsoft power bi workbook:&lt;/P&gt;&lt;PRE&gt;=SUM(NUMERATOR_TABLE[NUMERATOR_AMOUNT])
 /
SUMX( RELATEDTABLE(DENOMINATOR_TABLE), DENOMINATOR_TABLE[DENOMINATOR_AMOUNT])&lt;/PRE&gt;&lt;P&gt;I'm looking for help translating this into a qlik expression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically it's a calculated measure where filters from the numerator table apply only to the numerator of the ratio. Filters in the denominator table's attributes apply to both the numerator and denominator.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The setup is that I have two tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One containing people with attributes like state, county, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And one containing expenses generated by those people, with each person able to have none or many different expenses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The tables are related on the person ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The expression is intended to calculate expense totals per person.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It lets me me filter different person categories and different expense categories while always having the denominator of the expression reflect the people meeting the filter selected from attributes in the person table.&lt;/P&gt;&lt;P&gt;The numerator should then be all expenses for the filtered people where the expenses meet the criteria for any filters selected from attributes in the expenses table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I could filter on the person table attribute state to&amp;nbsp; "Texas" the ratio would be total expenses per person for persons residing in Texas.&lt;/P&gt;&lt;P&gt;If I then filter to "Housing" from the expense category attribute in the expenses table, I would see housing expenses per person, for all people residing in Texas. The denominator here would include counting people who have NO housing expenses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I just used sums and didn't have the the sumx and "related table" construct from power BI, these two filters would leave me showing sum of housing expenses for people in TX divided by the count of people residing in TX who had housing expenses instead of dividing by the count of all people in TX with or without housing expenses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Nov 2018 00:50:11 GMT</pubDate>
    <dc:creator>bartsimpson77</dc:creator>
    <dc:date>2018-11-14T00:50:11Z</dc:date>
    <item>
      <title>Help translating a microsoft DAX statement to Qlik expression</title>
      <link>https://community.qlik.com/t5/App-Development/Help-translating-a-microsoft-DAX-statement-to-Qlik-expression/m-p/1505575#M36176</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this expression in a microsoft power bi workbook:&lt;/P&gt;&lt;PRE&gt;=SUM(NUMERATOR_TABLE[NUMERATOR_AMOUNT])
 /
SUMX( RELATEDTABLE(DENOMINATOR_TABLE), DENOMINATOR_TABLE[DENOMINATOR_AMOUNT])&lt;/PRE&gt;&lt;P&gt;I'm looking for help translating this into a qlik expression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically it's a calculated measure where filters from the numerator table apply only to the numerator of the ratio. Filters in the denominator table's attributes apply to both the numerator and denominator.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The setup is that I have two tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One containing people with attributes like state, county, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And one containing expenses generated by those people, with each person able to have none or many different expenses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The tables are related on the person ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The expression is intended to calculate expense totals per person.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It lets me me filter different person categories and different expense categories while always having the denominator of the expression reflect the people meeting the filter selected from attributes in the person table.&lt;/P&gt;&lt;P&gt;The numerator should then be all expenses for the filtered people where the expenses meet the criteria for any filters selected from attributes in the expenses table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I could filter on the person table attribute state to&amp;nbsp; "Texas" the ratio would be total expenses per person for persons residing in Texas.&lt;/P&gt;&lt;P&gt;If I then filter to "Housing" from the expense category attribute in the expenses table, I would see housing expenses per person, for all people residing in Texas. The denominator here would include counting people who have NO housing expenses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I just used sums and didn't have the the sumx and "related table" construct from power BI, these two filters would leave me showing sum of housing expenses for people in TX divided by the count of people residing in TX who had housing expenses instead of dividing by the count of all people in TX with or without housing expenses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 00:50:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-translating-a-microsoft-DAX-statement-to-Qlik-expression/m-p/1505575#M36176</guid>
      <dc:creator>bartsimpson77</dc:creator>
      <dc:date>2018-11-14T00:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help translating a microsoft DAX statement to Qlik expression</title>
      <link>https://community.qlik.com/t5/App-Development/Help-translating-a-microsoft-DAX-statement-to-Qlik-expression/m-p/1505639#M36179</link>
      <description>&lt;P&gt;As Such Power BI need to assign table names where Qlik Don't need to use Table names. In Qlik, You can define like&lt;/P&gt;&lt;PRE&gt;=SUM(NUMERATOR_AMOUNT)/RangeSum(Measure1, Measure2)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 03:35:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-translating-a-microsoft-DAX-statement-to-Qlik-expression/m-p/1505639#M36179</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-11-14T03:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help translating a microsoft DAX statement to Qlik expression</title>
      <link>https://community.qlik.com/t5/App-Development/Help-translating-a-microsoft-DAX-statement-to-Qlik-expression/m-p/1506180#M36182</link>
      <description>Thanks for the reply but I don’t think it’s working. Rangesum seems to add two things together not great the changes filtering behavior I’m after.</description>
      <pubDate>Wed, 14 Nov 2018 12:38:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-translating-a-microsoft-DAX-statement-to-Qlik-expression/m-p/1506180#M36182</guid>
      <dc:creator>bartsimpson77</dc:creator>
      <dc:date>2018-11-14T12:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help translating a microsoft DAX statement to Qlik expression</title>
      <link>https://community.qlik.com/t5/App-Development/Help-translating-a-microsoft-DAX-statement-to-Qlik-expression/m-p/1506300#M36183</link>
      <description>What is the power BI expression do?</description>
      <pubDate>Wed, 14 Nov 2018 13:54:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-translating-a-microsoft-DAX-statement-to-Qlik-expression/m-p/1506300#M36183</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-11-14T13:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help translating a microsoft DAX statement to Qlik expression</title>
      <link>https://community.qlik.com/t5/App-Development/Help-translating-a-microsoft-DAX-statement-to-Qlik-expression/m-p/1506322#M36184</link>
      <description>I described it in the text below it.</description>
      <pubDate>Wed, 14 Nov 2018 14:13:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-translating-a-microsoft-DAX-statement-to-Qlik-expression/m-p/1506322#M36184</guid>
      <dc:creator>bartsimpson77</dc:creator>
      <dc:date>2018-11-14T14:13:31Z</dc:date>
    </item>
  </channel>
</rss>

