<?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: Power BI formula translate to Qlik Sense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Power-BI-formula-translate-to-Qlik-Sense/m-p/1798959#M64713</link>
    <description>&lt;P&gt;Thank you for the effords! I will review the solution and let you know my feedback!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Julia&lt;/P&gt;</description>
    <pubDate>Tue, 13 Apr 2021 05:56:06 GMT</pubDate>
    <dc:creator>Julia_Velinova</dc:creator>
    <dc:date>2021-04-13T05:56:06Z</dc:date>
    <item>
      <title>Power BI formula translate to Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Power-BI-formula-translate-to-Qlik-Sense/m-p/1795864#M62403</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I need advice on how to make a Power bi formula work in Qlik Sense. I have been trying to come up with something similar in qlik sense for quite some time now, but it never provided the flexability i had in Power Bi.&lt;/P&gt;&lt;P&gt;I need to apply percentile to a data set and be able to change dinamicly. If the % i am applying is 5% of 100 rows = 5rows, i need it to take the same 5% percentile when i filter for example on 50 rows and get 2.5 rows and so on.&lt;/P&gt;&lt;P&gt;Here is the formula in BI that worked:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TTR = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR LowerValue = CALCULATE(PERCENTILE.INC ('Table'[Index], .03), ('Table'))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR UpperValue = CALCULATE(PERCENTILE.INC ( 'Table'[Index], .95 ), ('Table')) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE(AVERAGE('Table'[Time]), AND('Table'[Index] &amp;gt;= LowerValue,'Table'[Index] &amp;lt;= UpperValue))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Really appreciate if anyone has any ideas.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Julia&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 31 Mar 2021 06:32:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Power-BI-formula-translate-to-Qlik-Sense/m-p/1795864#M62403</guid>
      <dc:creator>Julia_Velinova</dc:creator>
      <dc:date>2021-03-31T06:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI formula translate to Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Power-BI-formula-translate-to-Qlik-Sense/m-p/1796505#M62482</link>
      <description>&lt;P&gt;In Qlik you can create variables with values, or expressions like you need either inside the Load Script, or in the UI. Variables can be assigned and calculated at a later time via what is called &lt;A href="https://help.qlik.com/en-US/sense/February2021/Subsystems/Hub/Content/Sense_Hub/Scripting/dollar-sign-expansion-using-variable.htm" target="_blank" rel="noopener"&gt;$ sign expansion&lt;/A&gt; or calculated with a fixed value right then.&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;SET vLiteral = 1 + 1; // This stores the string "1 + 1";&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;LET vSum = 1 + 1; // This stores 2&lt;/P&gt;&lt;P&gt;The Dynamic nature of whether you want 5% of the rows, or 9% of the rows can also be done through a variable and then you can use a&lt;A href="https://www.youtube.com/watch?v=w5dTLv8XU50" target="_blank" rel="noopener"&gt; Variable Input chart type to use an input box or slider&lt;/A&gt; etc to set that value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Calculating an aggregate would be done using what is called &lt;A href="https://help.qlik.com/en-US/sense/February2021/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/SetAnalysis/set-analysis-expressions.htm" target="_blank" rel="noopener"&gt;Set Analysis in Qlik&lt;/A&gt;. Syntax is different than PowerBI but essentially the same.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a previous Qlik Community post that demonstrates the syntax you are looking for regarding a range of values.&amp;nbsp;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Set-Analysis-Compare-Number-with-Range-Classification/td-p/1075874" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Dev/Set-Analysis-Compare-Number-with-Range-Classification/td-p/1075874&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 19:01:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Power-BI-formula-translate-to-Qlik-Sense/m-p/1796505#M62482</guid>
      <dc:creator>Dalton_Ruer</dc:creator>
      <dc:date>2021-04-01T19:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI formula translate to Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Power-BI-formula-translate-to-Qlik-Sense/m-p/1796550#M62498</link>
      <description>&lt;P&gt;Hi Dalton_Ruer,&lt;/P&gt;&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;I did play a bit with the range formulas and here is what i came up with:&lt;/P&gt;&lt;P&gt;IF(NUM(RANK(TOTAL -SUM([Resolution Time]),4))&amp;gt;=fractile(TOTAL aggr(Rank(total [Case Number],4,0),[Case Number]), 0.05)&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;NUM(RANK(TOTAL -SUM([Resolution Time]),4))&amp;lt;=fractile(TOTAL aggr(Rank(total [Case Number],4,0),[Case Number]), 0.95),&lt;/P&gt;&lt;P&gt;Avg( [Resolution Time]),&lt;/P&gt;&lt;P&gt;NULL())&lt;/P&gt;&lt;P&gt;Unfortunately it srill doesnt work in a table.&lt;/P&gt;&lt;P&gt;I am attaching sample data with my table results as well.&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;Julia&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 07:40:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Power-BI-formula-translate-to-Qlik-Sense/m-p/1796550#M62498</guid>
      <dc:creator>Julia_Velinova</dc:creator>
      <dc:date>2021-04-02T07:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI formula translate to Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Power-BI-formula-translate-to-Qlik-Sense/m-p/1796794#M64405</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/138421"&gt;@Julia_Velinova&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for sharing a sample file, I tried to understand your expected result with no joy; my Qlik application is returning the same figures you posted, but I failed to replicate your expected results with your Excel data, as I explain below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PowerBI-Formula-01.png" style="width: 591px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/52335i50437F0A829B2540/image-size/large?v=v2&amp;amp;px=999" role="button" title="PowerBI-Formula-01.png" alt="PowerBI-Formula-01.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My Lower and Upper values are way different to yours, your Dimension 1's are close to my Dimension 3's which confused me; still there are some differences; I don't know where your Dimension 3's 1 and 15 are coming from.&lt;/P&gt;&lt;P&gt;These are the Excel formulas I am using:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Lower Value: PERCENTILE.INC($A82:$A97,0.05)
Upper Value: PERCENTILE.INC($A82:$A97,0.95)&lt;/LI-CODE&gt;&lt;P&gt;Where the range: A82 - A97 correspond with the dimension 3, calculating the percentile on the Case Number column.&lt;/P&gt;&lt;P&gt;As I could be wrong with my formula, would you please include the formulas you are using? or your figures were taken directly from PowerBI?&lt;/P&gt;&lt;P&gt;If you took the figures from PowerBI, notice that Excel returns a different result for the same expression.&lt;/P&gt;&lt;P&gt;Once you clarify my doubts and confusions I will be able to help you better.&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 05:56:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Power-BI-formula-translate-to-Qlik-Sense/m-p/1796794#M64405</guid>
      <dc:creator>ArnadoSandoval</dc:creator>
      <dc:date>2021-04-05T05:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI formula translate to Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Power-BI-formula-translate-to-Qlik-Sense/m-p/1796799#M64407</link>
      <description>&lt;P&gt;Hi Arnaldo Sandoval,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you for looking into the data.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Probably i should have explained it better, my expected result table is calculated in excel (i added 2 new sheets in my file for explanation). In order to calculated the result i separate my Dimensions and looking just at the data set by itself, than i create a flag which shows where my lower and upper percentiles are, like 1 and 15, everything in-between is my result. That is what i expect to happen in QlikSense and this is how it works in Power Bi.&lt;/P&gt;&lt;P&gt;Hope that clarifies it.&lt;/P&gt;&lt;P&gt;Thanks, Julia&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 06:45:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Power-BI-formula-translate-to-Qlik-Sense/m-p/1796799#M64407</guid>
      <dc:creator>Julia_Velinova</dc:creator>
      <dc:date>2021-04-05T06:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI formula translate to Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Power-BI-formula-translate-to-Qlik-Sense/m-p/1796876#M64418</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/138421"&gt;@Julia_Velinova&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the updated Excel file, it helped but you haven't answer my question about the formulas your are using to get the Lower and Upper Values in the Excel file, your original post includes formulas that I believe were taken from Power BI, anyhow.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Comments on the new Excel file:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The sheet &lt;STRONG&gt;All&lt;/STRONG&gt; include the field (column) &lt;STRONG&gt;Case Number&lt;/STRONG&gt;, which is a &lt;U&gt;unique sequential number&lt;/U&gt; for &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;all&lt;/STRONG&gt; &lt;/FONT&gt;your data, e.g. &lt;EM&gt;Case Number&lt;/EM&gt; equal &lt;EM&gt;2&lt;/EM&gt; belong to &lt;EM&gt;Dimension 3&lt;/EM&gt; and nobody else.&lt;/LI&gt;&lt;LI&gt;Your new sheets &lt;STRONG&gt;Dimension 3&lt;/STRONG&gt; and &lt;STRONG&gt;Dimension 1&lt;/STRONG&gt; also feature the &lt;STRONG&gt;Case Number&lt;/STRONG&gt; field (column) and they are &lt;U&gt;unique sequential number&lt;/U&gt; for &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;each&lt;/STRONG&gt; &lt;/FONT&gt;&lt;U&gt;Dimension&lt;/U&gt;, e.g. &lt;EM&gt;Case Number&lt;/EM&gt; equal &lt;EM&gt;2&lt;/EM&gt; appears on the &lt;STRONG&gt;Dimension 1&lt;/STRONG&gt; and &lt;STRONG&gt;Dimension 3&lt;/STRONG&gt; sheets; in other words, this field is &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;different&lt;/FONT&gt; &lt;/STRONG&gt;to the &lt;STRONG&gt;Case Number&lt;/STRONG&gt; on the sheet &lt;STRONG&gt;All&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;We can't have a field (column) name with two different meanings, because "Case Number" in the sheet All does not represent the same meaning as "Case Number" on sheets: Dimension 1 and Dimension 3; for this reason, the Qlik Application (attached) introduced a new field (column) named &lt;STRONG&gt;RT_Seq&lt;/STRONG&gt;, it replaces your second &lt;STRONG&gt;Case Number&lt;/STRONG&gt; field (column) appearing on the sheets &lt;STRONG&gt;Dimension 1 &lt;/STRONG&gt;and &lt;STRONG&gt;Dimension 3&lt;/STRONG&gt;.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Load Script:&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;UserData:
LOAD
    "Case Number"        As Case_Number,
    "Resolution Time"    As Resolution_Time,
    "Dimension"          As Dimension,
    AutoNumber("Case Number", "Dimension") As RT_Seq,
    "IF(
NUM(RANK(TOTAL -SUM([Resolution Time]),4))&amp;gt;=fractile(TOTAL aggr(Rank(total [Case Number],4,0),[Case Number]), 0.05)
and
NUM(RANK(TOTAL -SUM([Resolution Time]),4))&amp;lt;=fractile(TOTAL aggr(Rank(total [Case Number],4,0),[Case Number]), 0.95),1,0)"  As Formula_1,
    "IF(NUM(RANK(TOTAL -SUM([Resolution Time]),4))&amp;gt;=fractile(TOTAL aggr(Rank(total [Case Number],4,0),[Case Number]), 0.05)" As Formula_2,
    "Count"              As Count
FROM [lib://SampleData/Percentile-Sample-data.xlsx]
(ooxml, embedded labels, table is Sheet1);&lt;/LI-CODE&gt;&lt;P&gt;The last three fields in the Load statement were not required for the solution, so the simplified script is:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;UserData:
LOAD
    "Case Number"        As Case_Number,
    "Resolution Time"    As Resolution_Time,
    "Dimension"          As Dimension,
    AutoNumber("Case Number", "Dimension") As RT_Seq
FROM [lib://SampleData/Percentile-Sample-data.xlsx]
(ooxml, embedded labels, table is Sheet1);&lt;/LI-CODE&gt;&lt;P&gt;Note: I am loading Sheet1 from the first Excel file you shared.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The column RT_Seq&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;    AutoNumber("Case Number", "Dimension") As RT_Seq&lt;/LI-CODE&gt;&lt;P&gt;This field generates a "sequential" number similar to the "Case Number" in your second Excel file, but we can't use the same name for the reason given above.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;User Interface / Front End:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I added this table on the UI/Front End of the solution.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PowerBI-Formula-02.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/52354i63501C6CD78C158F/image-size/large?v=v2&amp;amp;px=999" role="button" title="PowerBI-Formula-02.png" alt="PowerBI-Formula-02.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Here, It shows your three dimensions, and on its last two columns, the fields: &lt;STRONG&gt;Lower Value&lt;/STRONG&gt; and &lt;STRONG&gt;Upper Value&lt;/STRONG&gt;, the remaining columns are informative.&lt;/LI&gt;&lt;LI&gt;The &lt;STRONG&gt;Count(Case_Number)&lt;/STRONG&gt; (Notice I replaced the space in Case Number with an underscore to avoid the double quotes, which are a nuisance if we need that fields to create Set Analysis expressions, which could be the case)&lt;/LI&gt;&lt;LI&gt;The &lt;STRONG&gt;Count(Case_Number)&lt;/STRONG&gt; match the &lt;STRONG&gt;Max(RT_Seq)&lt;/STRONG&gt; which is good, these fields &lt;STRONG&gt;Min(RT_Seq)&lt;/STRONG&gt; and &lt;STRONG&gt;Max(RT_Seq)&lt;/STRONG&gt; define the range of values for each dimension.&lt;/LI&gt;&lt;LI&gt;I read some articles explaining &lt;STRONG&gt;PERCENTILES&lt;/STRONG&gt;, but none of them elaborates on what happens if the set of data (&lt;STRONG&gt;Count(Case_Number)&lt;/STRONG&gt;) is equal to 1, so, in such cases (&lt;STRONG&gt;Dimension 2&lt;/STRONG&gt;) it returned a dash character.&lt;/LI&gt;&lt;LI&gt;I wont explain here on this reply how I calculated &lt;STRONG&gt;Lower Value&lt;/STRONG&gt; and &lt;STRONG&gt;Upper Value&lt;/STRONG&gt; because I am still waiting for your answer, I could write that I took some &lt;U&gt;executive decisions&lt;/U&gt; for the &lt;U&gt;lack of information&lt;/U&gt;; we can speak about these two fields once I know more about the logic behind them in your Excel file.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;References: (Articles/topics I read working out this reply)&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://www.mathsisfun.com/data/percentiles.html" target="_blank" rel="noopener"&gt;Percentiles&lt;/A&gt;&amp;nbsp; Good article, informative.&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://statisticsbyjim.com/basics/percentiles/" target="_blank" rel="noopener"&gt;Percentiles: Interpretations and Calculations&lt;/A&gt;&amp;nbsp; Another good article, but the one above was more informative.&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://en.wikipedia.org/wiki/Percentile" target="_blank" rel="noopener"&gt;Percentile&lt;/A&gt;&amp;nbsp; This Wikipedia page was quite good as well.&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://en.wiktionary.org/wiki/fractile" target="_blank" rel="noopener"&gt;Fractile&lt;/A&gt;&amp;nbsp;While trying to find the definitions for Fractile and Percentiles because Qlik feature a Fractile function while Power BI/Excel use Percentile, I discovered that statisticians do not agree on a definition&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":rolling_on_the_floor_laughing:"&gt;🤣&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/percentilex-inc-function-dax" target="_blank" rel="noopener"&gt;PercentileINC&lt;/A&gt;&amp;nbsp;Excel/Power BI explanation of the percentile function, it was not helpful.&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://help.qlik.com/en-US/sense/February2021/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalAggregationFunctionsinCharts/fractile.htm" target="_blank" rel="noopener"&gt;Fractile&lt;/A&gt;&amp;nbsp;Qlik's Fractile help page, I took its example, and it is part of the attached solution.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/percentile-calculation/td-p/234558" target="_blank" rel="noopener"&gt;Percentile Calculation&lt;/A&gt;&amp;nbsp;Qlik Community topic giving us some ideas.&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Help-Calculating-90th-Percentile/td-p/3928" target="_blank" rel="noopener"&gt;Help Calculating 90th Percentile&lt;/A&gt;&amp;nbsp; Qlik Community topic, with 3 pages of dialog, I did not read it through but the accepted solution seems to support the formulas in the attached solution.&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Calculate-percentile-of-specific-value/td-p/1008421" target="_blank" rel="noopener"&gt;Calculate percentile of specific value&lt;/A&gt;&amp;nbsp; Qlik Community topic, I found it confusing, it is old, so I advise not to read it, or to read it just for information.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Final Comments:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The attached solution does not implement the fields Sum and AVG as, you guess, I am waiting confirmation on the Lower and Upper values calculations.&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 13:08:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Power-BI-formula-translate-to-Qlik-Sense/m-p/1796876#M64418</guid>
      <dc:creator>ArnadoSandoval</dc:creator>
      <dc:date>2021-04-05T13:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI formula translate to Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Power-BI-formula-translate-to-Qlik-Sense/m-p/1796892#M64420</link>
      <description>&lt;P&gt;Hi Arnaldo Sandoval,&lt;/P&gt;&lt;P&gt;Thank you for reply, i am still to test and read all of it. In the mean time here are my formulas for the Lower and Upper value:&lt;/P&gt;&lt;P&gt;LowerValue = fractile(TOTAL aggr(Rank(total [Case Case Number],4,0),[Case Case Number]), 0.05)&lt;/P&gt;&lt;P&gt;UpperValue = fractile(TOTAL aggr(Rank(total [Case Case Number],4,0),[Case Case Number]), 0.95)&lt;/P&gt;&lt;P&gt;And you are right, i should have used a separate field for indexing the data and not just ajust the Case number one. Thats how i did it in Power BI.&lt;/P&gt;&lt;P&gt;Thanks again, i will let you know when i review the rest.&lt;/P&gt;&lt;P&gt;Julia&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 13:40:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Power-BI-formula-translate-to-Qlik-Sense/m-p/1796892#M64420</guid>
      <dc:creator>Julia_Velinova</dc:creator>
      <dc:date>2021-04-05T13:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI formula translate to Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Power-BI-formula-translate-to-Qlik-Sense/m-p/1796955#M64430</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/138421"&gt;@Julia_Velinova&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you misunderstood my question, as I believe the formulas you posted are Qlik Sense's formulas, when I am after the Excel or Power BI ones, my internet search for a function 'Fractile' in Excel/PBI returned no hits. I need them because in the attached solution I forced the Lower and Upper values, which won't be a good/solid base to go ahead with the rest of the solution.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 18:45:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Power-BI-formula-translate-to-Qlik-Sense/m-p/1796955#M64430</guid>
      <dc:creator>ArnadoSandoval</dc:creator>
      <dc:date>2021-04-05T18:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI formula translate to Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Power-BI-formula-translate-to-Qlik-Sense/m-p/1797258#M64456</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The formula in my original post was from Power Bi and in excel i just calculate the % from the Total Case count *5% or 95%.&lt;/P&gt;&lt;P&gt;Here is the Power bi as well:&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;TTR =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR LowerValue = CALCULATE(PERCENTILE.INC ('Table'[Index], .03), ('Table'))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR UpperValue = CALCULATE(PERCENTILE.INC ( 'Table'[Index], .95 ), ('Table'))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE(AVERAGE('Table'[Time]), AND('Table'[Index] &amp;gt;= LowerValue,'Table'[Index] &amp;lt;= UpperValue))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dont have anything else....&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Julia&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 15:13:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Power-BI-formula-translate-to-Qlik-Sense/m-p/1797258#M64456</guid>
      <dc:creator>Julia_Velinova</dc:creator>
      <dc:date>2021-04-06T15:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI formula translate to Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Power-BI-formula-translate-to-Qlik-Sense/m-p/1797355#M64463</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/138421"&gt;@Julia_Velinova&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used those formulas with your Excel sample, my Excel does not support the CALCULATE function, and this is what I got;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PowerBI-Formula-03.png" style="width: 297px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/52480i9EFD253BEB0CE86E/image-size/large?v=v2&amp;amp;px=999" role="button" title="PowerBI-Formula-03.png" alt="PowerBI-Formula-03.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;These are the formulas for Lower/Upper values:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;=PERCENTILE.INC(A2:A80,0.05)
=PERCENTILE.INC(A2:A80,0.95)&lt;/LI-CODE&gt;&lt;P&gt;While your expected results rounded those value in ways that I did not understand, because your results are:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PowerBI-Formula-04.png" style="width: 388px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/52481i1E4F1BD16B6BA70E/image-size/large?v=v2&amp;amp;px=999" role="button" title="PowerBI-Formula-04.png" alt="PowerBI-Formula-04.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The Lower Value seems to be a truncation of the results returned by the PERCENTILE.INC function, while the rule for the Upper Value is not.&lt;/P&gt;&lt;P&gt;Anyhow, I think that I now why the Upper Value was truncated for Dimension 3 and rounded up for Dimension 1.&lt;/P&gt;&lt;P&gt;I will write out the rounding rules for these fields and implement the SET analysis in the Qlik Application sample for your problem; I will do that in my next reply.&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 20:25:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Power-BI-formula-translate-to-Qlik-Sense/m-p/1797355#M64463</guid>
      <dc:creator>ArnadoSandoval</dc:creator>
      <dc:date>2021-04-06T20:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI formula translate to Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Power-BI-formula-translate-to-Qlik-Sense/m-p/1797978#M64549</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/138421"&gt;@Julia_Velinova&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It took me a while to prepare this reply as I was fighting with QlikSense to implement a solution; there are two implementation alternatives, the attached Qlik Application (qvf file) includes both of them, actually, I managed to implement one of the alternative, as I explain.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;User Interface/Front End solution:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;It requires implementing variables to calculate: &lt;EM&gt;LowerValue&lt;/EM&gt;, &lt;EM&gt;UpperValue&lt;/EM&gt;, &lt;EM&gt;Count&lt;/EM&gt;, &lt;EM&gt;Sum&lt;/EM&gt; and &lt;EM&gt;Average&lt;/EM&gt;.&lt;/LI&gt;&lt;LI&gt;The &lt;EM&gt;LowerValue&lt;/EM&gt; and &lt;EM&gt;UpperValue&lt;/EM&gt; variables were no problems, while Qlik refuse any attempt to implement the set analysis expression for the &lt;EM&gt;Sum&lt;/EM&gt;() and &lt;EM&gt;Average&lt;/EM&gt; results; perhaps, my own fault implementing them.&lt;/LI&gt;&lt;LI&gt;The attached QVF's sheet 2: &lt;STRONG&gt;Results Phase 1&lt;/STRONG&gt;, implements (or try to implement) the expected results with variables; I did not delete this logic because somebody else could be able to assist.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Script Driven Fields:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The &lt;EM&gt;Load Script&lt;/EM&gt; resolves the &lt;EM&gt;LowerValue&lt;/EM&gt;, &lt;EM&gt;UpperValue&lt;/EM&gt; and &lt;EM&gt;Count&lt;/EM&gt; per dimension.&lt;/LI&gt;&lt;LI&gt;You will find in the section "&lt;STRONG&gt;Load User Data&lt;/STRONG&gt;" the table &lt;STRONG&gt;Stat&lt;/STRONG&gt; performing these calculations, using the &lt;STRONG&gt;&lt;EM&gt;Fractile&lt;/EM&gt; &lt;/STRONG&gt;function; it creates the fields:&amp;nbsp;&lt;EM&gt;Dim_LowerValue&lt;/EM&gt;,&amp;nbsp;&lt;EM&gt;Dim_UpperValue&lt;/EM&gt;, among other less relevant fields.&lt;/LI&gt;&lt;LI&gt;These fields appear in the UI as &lt;EM&gt;Scr_LowerValue&lt;/EM&gt; and &lt;EM&gt;Scr_UpperValue&lt;/EM&gt;.&lt;/LI&gt;&lt;LI&gt;Using a Mapping table and "&lt;EM&gt;Preceding&lt;/EM&gt; &lt;EM&gt;Load&lt;/EM&gt;" we create the &lt;EM&gt;&lt;STRONG&gt;Flag&lt;/STRONG&gt; &lt;/EM&gt;field, this field is set to 1 when the &lt;EM&gt;RunTime&lt;/EM&gt; &lt;EM&gt;Case Number&lt;/EM&gt;, e.g. &lt;EM&gt;RT_Seq&lt;/EM&gt; is within the &lt;EM&gt;Scr_LowerValue&lt;/EM&gt; and &lt;EM&gt;Scr_UpperValue&lt;/EM&gt; fields.&lt;/LI&gt;&lt;LI&gt;The &lt;EM&gt;LowerValue&lt;/EM&gt; expression is:&lt;/LI&gt;&lt;/UL&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;If&lt;/STRONG&gt;&lt;/FONT&gt;(&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/FONT&gt;(Case_Number) &amp;gt; 1, &lt;STRONG&gt;&lt;FONT color="#3366FF"&gt;Floor&lt;/FONT&gt;&lt;/STRONG&gt;(&lt;STRONG&gt;&lt;FONT color="#3366FF"&gt;fractile&lt;/FONT&gt;&lt;/STRONG&gt;([RT_Seq], 0.05)), '-')&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If we have one or less Cases in a dimension (&amp;lt;=1) it returns a dash.&lt;/LI&gt;&lt;LI&gt;If we have more than 1 Case ( &amp;gt; 1 ) we calculate the 5% &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;&lt;EM&gt;fractile&lt;/EM&gt; &lt;/STRONG&gt;&lt;/FONT&gt;on the &lt;EM&gt;RT_Seq&lt;/EM&gt; (run time Case Number)&lt;/LI&gt;&lt;LI&gt;We round down (&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;&lt;EM&gt;Floor&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;) the fractile when its result is by example 4.9; this value is the lower limit, but because "RT_Seq" are integers we rounded it to 4. (&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;&lt;/FONT&gt;: here it is up to your team to keep the rounding down, or implement the calculation driven by the calculated fractile, this could be a business decision, but your expected results is rounding down the fractile)&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;The &lt;EM&gt;UpperValue&lt;/EM&gt; expression is:&lt;/LI&gt;&lt;/UL&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;If&lt;/STRONG&gt;&lt;/FONT&gt;(&lt;STRONG&gt;&lt;FONT color="#3366FF"&gt;Count&lt;/FONT&gt;&lt;/STRONG&gt;(Case_Number) &amp;gt; 1, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; If&lt;/STRONG&gt;&lt;/FONT&gt;( &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/FONT&gt;(Case_Number) = &lt;STRONG&gt;&lt;FONT color="#3366FF"&gt;Ceil&lt;/FONT&gt;&lt;/STRONG&gt;(&lt;STRONG&gt;&lt;FONT color="#3366FF"&gt;fractile&lt;/FONT&gt;&lt;/STRONG&gt;([RT_Seq], 0.95))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; , &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;Floor&lt;/STRONG&gt;&lt;/FONT&gt;(&lt;STRONG&gt;&lt;FONT color="#3366FF"&gt;fractile&lt;/FONT&gt;&lt;/STRONG&gt;([RT_Seq], 0.95)),&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;Ceil&lt;/STRONG&gt;&lt;/FONT&gt;(&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;fractile&lt;/STRONG&gt;&lt;/FONT&gt;([RT_Seq], 0.95))) &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; , '-')&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If we have one or less Cases in a dimension (&amp;lt;=1) it returns a dash.&lt;/LI&gt;&lt;LI&gt;If the number of cases (&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/FONT&gt;) in the dimension is equal to the rounded up (&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;Ceil&lt;/STRONG&gt;&lt;/FONT&gt;) 95% &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;fractile&lt;/STRONG&gt;&lt;/FONT&gt;, e.g. 100% of the records in the dimension, we have to round down (&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;Floor&lt;/STRONG&gt;&lt;/FONT&gt;) the 95% fractile, otherwise, we keep the round up (&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;Ceil&lt;/STRONG&gt;&lt;/FONT&gt;) value.&lt;/LI&gt;&lt;LI&gt;This rules satisfice the &lt;STRONG&gt;Expected Result&lt;/STRONG&gt; in your Excel file.&lt;/LI&gt;&lt;/UL&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;Results Phase 2 user interface:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The resulting table: &lt;STRONG&gt;UserData&lt;/STRONG&gt; now includes these new columns for us to implement the expected results on the user interface.&lt;/LI&gt;&lt;LI&gt;The third sheet on the UI (&lt;EM&gt;Results&lt;/EM&gt; &lt;EM&gt;Phase&lt;/EM&gt; &lt;EM&gt;2&lt;/EM&gt;) implements the expected results driven from the &lt;EM&gt;Load Script&lt;/EM&gt; fields.&lt;/LI&gt;&lt;LI&gt;The expression calculating the Sum of the Resolution Time inside the Lower/Upper values is:&lt;/LI&gt;&lt;/UL&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;Sum&lt;/STRONG&gt;&lt;/FONT&gt;({$&amp;lt;Flag={1}&amp;gt;} Resolution_Time)&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;We sum all the &lt;EM&gt;Resolution Times&lt;/EM&gt; for all the records inside the Lower/Upper value, e.g. those the load script flagged with 1.&lt;/LI&gt;&lt;LI&gt;The expression calculating the Average of the Resolution Time inside the Lower/Upper values is:&lt;/LI&gt;&lt;/UL&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;Avg&lt;/STRONG&gt;&lt;/FONT&gt;({$&amp;lt;Flag={1}&amp;gt;} Resolution_Time)&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Once again, Flag equal to 1 identifies the records in this expression.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Comments&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Your expected result for the Sum of Resolution Times for Dimension 1 seems to be incorrect, as your calculation include the range between the records 4 and 75.&lt;/LI&gt;&lt;LI&gt;Your expected result for the Average was calculated between the records 4 and 75, which seems incorrect to me.&lt;/LI&gt;&lt;LI&gt;I did not try to find an explanation for the discrepancy on the Average for Dimension 3, first of all, as I do not have the formula you are using, but it seems to be that the record with a Resolution Time of zero was excluded from the Average calculation, and I do not know in detail the business rules you are using.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Well, this is all I can shared with you at the moment, I have some page reference which I will add in another reply tomorrow, as they are supporting concepts for this solution.&lt;/P&gt;&lt;P&gt;Please let me know your feed back, and if the Load Script implementation resolve your issue.&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 12:51:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Power-BI-formula-translate-to-Qlik-Sense/m-p/1797978#M64549</guid>
      <dc:creator>ArnadoSandoval</dc:creator>
      <dc:date>2021-04-08T12:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI formula translate to Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Power-BI-formula-translate-to-Qlik-Sense/m-p/1798959#M64713</link>
      <description>&lt;P&gt;Thank you for the effords! I will review the solution and let you know my feedback!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Julia&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 05:56:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Power-BI-formula-translate-to-Qlik-Sense/m-p/1798959#M64713</guid>
      <dc:creator>Julia_Velinova</dc:creator>
      <dc:date>2021-04-13T05:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI formula translate to Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Power-BI-formula-translate-to-Qlik-Sense/m-p/2049570#M86273</link>
      <description>&lt;P&gt;I believe you misunderstood my question, as I believe the formulas you posted are for Qlik Sense, not Excel or Power BI, and my internet search for a function called "Fractile" in Excel/PBI yielded no results&lt;A href="https://bizzvibes.com/how-to-add-friend-on-venmo/" target="_self"&gt;.&lt;/A&gt; I require them because in the attached solution, I forced the Lower and Upper values, which will not provide a good/solid foundation for the rest of the solution.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 14:05:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Power-BI-formula-translate-to-Qlik-Sense/m-p/2049570#M86273</guid>
      <dc:creator>robinh12</dc:creator>
      <dc:date>2023-03-15T14:05:14Z</dc:date>
    </item>
  </channel>
</rss>

