<?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: DATA[booked_calls] in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/DATA-booked-calls/m-p/319879#M9433</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="44902" data-lia-user-login="qs" class="lia-mention lia-mention-user"&gt;qs&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&amp;nbsp; I hope that I can get a bit of help. I have two columns in my&amp;nbsp;DATA table and I'm trying to divide one by the other to give me a percentile output.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's a simple call booking table. Ideally, I would like to see a percentage column which shows calls divided by booked_call for any given day and/or month.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Both calls and booked_calls are expressed in dd: mm:yyyy hh: mm: ss.&lt;/P&gt;
&lt;P&gt;DATA[calls] is the first column and&amp;nbsp;DATA[booked_calls] is the other.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your&amp;nbsp;help in advance.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="44902" data-lia-user-login="qs" class="lia-mention lia-mention-user"&gt;qs&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;It is not quite clear for me. Could you share any sample data and expected output?&lt;/P&gt;</description>
    <pubDate>Fri, 08 Dec 2017 07:40:00 GMT</pubDate>
    <dc:creator>Eric_Zhang</dc:creator>
    <dc:date>2017-12-08T07:40:00Z</dc:date>
    <item>
      <title>DATA[booked_calls]</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/DATA-booked-calls/m-p/319249#M9421</link>
      <description>&lt;P&gt;Hello,&amp;nbsp; I hope that I can get a bit of help. I have two columns in my&amp;nbsp;DATA table and I'm trying to divide one by the other to give me a percentile output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's a simple call booking table. Ideally, I would like to see a percentage column which shows calls divided by booked_call for any given day and/or month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both calls and booked_calls are expressed in dd: mm:yyyy hh: mm: ss.&lt;/P&gt;&lt;P&gt;DATA[calls] is the first column and&amp;nbsp;DATA[booked_calls] is the other.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your&amp;nbsp;help in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 13:43:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/DATA-booked-calls/m-p/319249#M9421</guid>
      <dc:creator>qs</dc:creator>
      <dc:date>2017-12-07T13:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: DATA[booked_calls]</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/DATA-booked-calls/m-p/319879#M9433</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="44902" data-lia-user-login="qs" class="lia-mention lia-mention-user"&gt;qs&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&amp;nbsp; I hope that I can get a bit of help. I have two columns in my&amp;nbsp;DATA table and I'm trying to divide one by the other to give me a percentile output.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's a simple call booking table. Ideally, I would like to see a percentage column which shows calls divided by booked_call for any given day and/or month.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Both calls and booked_calls are expressed in dd: mm:yyyy hh: mm: ss.&lt;/P&gt;
&lt;P&gt;DATA[calls] is the first column and&amp;nbsp;DATA[booked_calls] is the other.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your&amp;nbsp;help in advance.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="44902" data-lia-user-login="qs" class="lia-mention lia-mention-user"&gt;qs&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;It is not quite clear for me. Could you share any sample data and expected output?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 07:40:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/DATA-booked-calls/m-p/319879#M9433</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-12-08T07:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: DATA[booked_calls]</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/DATA-booked-calls/m-p/320054#M9436</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 09:31:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/DATA-booked-calls/m-p/320054#M9436</guid>
      <dc:creator>qs</dc:creator>
      <dc:date>2017-12-08T09:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: DATA[booked_calls]</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/DATA-booked-calls/m-p/320124#M9439</link>
      <description>&lt;P&gt;In substance, I would like to calculate the ratio of&amp;nbsp; "Count of calls" over&amp;nbsp;"Count of booked_calls" expressed in percentage for each given month.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 10:51:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/DATA-booked-calls/m-p/320124#M9439</guid>
      <dc:creator>qs</dc:creator>
      <dc:date>2017-12-08T10:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: DATA[booked_calls]</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/DATA-booked-calls/m-p/320915#M9456</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="44902" data-lia-user-login="qs" class="lia-mention lia-mention-user"&gt;qs&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Then you'll have to split those two column into individual tables, convert the selected column to date type.&lt;/P&gt;
&lt;PRE&gt;booked_calls = SELECTCOLUMNS(yourTable,"booked_call",yourTable[booked_call])

calls = SELECTCOLUMNS(yourTable,"call",yourTable[calls])&lt;/PRE&gt;
&lt;P&gt;Create a calendar table.&lt;/P&gt;
&lt;PRE&gt;calendar = CALENDAR("2017-01-01","2017-12-31")&lt;/PRE&gt;
&lt;P&gt;The create proper relationship&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then just create a measure as&lt;/P&gt;
&lt;PRE&gt;prec = DIVIDE(COUNT(booked_calls[booked_call]),COUNT(calls[call]))&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Dec 2017 06:45:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/DATA-booked-calls/m-p/320915#M9456</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-12-11T06:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: DATA[booked_calls]</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/DATA-booked-calls/m-p/322040#M9494</link>
      <description>&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;Thanks for your message. Since I have date_table, I managed to get the percentages of the "calls" over the "booked_calls" using&amp;nbsp;&amp;nbsp;the following formula:&lt;/P&gt;&lt;P&gt;Percentage = DIVIDE([count of calls],[count of booked_calls])*100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;BR /&gt;Q&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 14:39:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/DATA-booked-calls/m-p/322040#M9494</guid>
      <dc:creator>qs</dc:creator>
      <dc:date>2017-12-12T14:39:13Z</dc:date>
    </item>
  </channel>
</rss>

