<?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: marketing campaign for Term Deposits, count term deposits achieved from campaign and create visuals in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/marketing-campaign-for-Term-Deposits-count-term-deposits/m-p/3220408#M117694</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="477752" data-lia-user-login="jitterbug777" class="lia-mention lia-mention-user"&gt;jitterbug777&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;2 points :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;On the image of your data we can see that you try to create a measure and not a calculated column (which I think is the reason why your tablis is not recogniye)&lt;/LI&gt;&lt;LI&gt;Your IF function is not properly written (&lt;A href="https://learn.microsoft.com/en-us/dax/if-function-dax" target="_blank" rel="noopener"&gt;IF function (DAX) - DAX | Microsoft Learn&lt;/A&gt;)&lt;BR /&gt;I would write the calculated column like this :&lt;BR /&gt;existingTD = IF(Sampledata[hastermDeposit] == 1, "yes","no")&lt;BR /&gt;This way it will also take care of rows that have no data and will automatically put no&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Have a good day&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2023 15:40:42 GMT</pubDate>
    <dc:creator>philouduv</dc:creator>
    <dc:date>2023-05-04T15:40:42Z</dc:date>
    <item>
      <title>marketing campaign for Term Deposits, count term deposits achieved from campaign and create visuals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/marketing-campaign-for-Term-Deposits-count-term-deposits/m-p/3199313#M116229</link>
      <description>&lt;P&gt;I`m new to power query, this mock sample data is based on a marketing campaign to find out the results of how many samples opened a term deposit after the campaign, and to create visuals to view what categories of data show the biggest uptake by ranking via matrix and bar charts, pie charts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="sample term deposit data" href="https://1drv.ms/u/s!AvxF_ZOckNEchmoDOrG0kDnYgVdJ?e=Bz7tYw" target="_self"&gt;mock sample data&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Attribute Information:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; # bank client data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 1 - &lt;STRONG&gt;age&lt;/STRONG&gt; (numeric)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 2 - &lt;STRONG&gt;job&lt;/STRONG&gt; : type of job (categorical: "admin.","unknown","unemployed","management","housemaid","entrepreneur","student", "blue-collar","self-employed","retired","technician","services")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 3 - &lt;STRONG&gt;marital&lt;/STRONG&gt; : marital status (categorical: "married","divorced","single"; note: "divorced" means divorced or widowed)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 4 - &lt;STRONG&gt;education&lt;/STRONG&gt; (categorical: "unknown","secondary","primary","tertiary")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 5 - &lt;STRONG&gt;default&lt;/STRONG&gt;: has credit in default? (binary: "yes","no")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 6 - &lt;STRONG&gt;balance&lt;/STRONG&gt;: average yearly balance, in euros (numeric)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 7 - &lt;STRONG&gt;housing&lt;/STRONG&gt;: has housing loan? (binary: "yes","no")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 8 - &lt;STRONG&gt;loan&lt;/STRONG&gt;: has personal loan? (binary: "yes","no")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; # related with the last contact of the current campaign:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 9 - &lt;STRONG&gt;contact&lt;/STRONG&gt;: contact communication type (categorical: "unknown","telephone","cellular")&lt;/P&gt;&lt;P&gt;&amp;nbsp; 10 - &lt;STRONG&gt;day&lt;/STRONG&gt;: last contact day of the month (numeric)&lt;/P&gt;&lt;P&gt;&amp;nbsp; 11 - &lt;STRONG&gt;month&lt;/STRONG&gt;: last contact month of year (categorical: "jan", "feb", "mar", ..., "nov", "dec")&lt;/P&gt;&lt;P&gt;&amp;nbsp; 12 - &lt;STRONG&gt;duration&lt;/STRONG&gt;: last contact duration, in seconds (numeric)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; # other attributes:&lt;/P&gt;&lt;P&gt;&amp;nbsp; 13 - &lt;STRONG&gt;campaign&lt;/STRONG&gt;: number of contacts performed during this campaign and for this client (numeric, includes last contact)&lt;/P&gt;&lt;P&gt;&amp;nbsp; 14 - &lt;STRONG&gt;pdays&lt;/STRONG&gt;: number of days that passed by after the client was last contacted from a previous campaign (numeric, -1 means client was not previously contacted)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 15 - &lt;STRONG&gt;previous&lt;/STRONG&gt;: number of contacts performed before this campaign and for this client (numeric)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 16 - &lt;STRONG&gt;poutcome&lt;/STRONG&gt;: outcome of the previous marketing campaign (categorical: "unknown","other","failure","success")&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 17 &lt;STRONG&gt;- y - &lt;/STRONG&gt;has the client subscribed a term deposit? (binary: "yes","no")&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;_________________________________________________________________________________________________________________&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was trying to create an IF statement to convert the hasTermDeposit results to a 0 or 1 so I could use them as values in a matrix in visuals.&lt;/P&gt;&lt;P&gt;I also attempted to add a column and convert yes to 1 and no to 0 in Power Query so I could count that column in visuals.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you, any feedback is&amp;nbsp; helpful.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in power query created hasTD to convert no to 0 and yes to 1.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;also not sure why my talbe name is not being recognized in the DAX formula or the column names.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 04:05:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/marketing-campaign-for-Term-Deposits-count-term-deposits/m-p/3199313#M116229</guid>
      <dc:creator>jitterbug777</dc:creator>
      <dc:date>2023-04-21T04:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: marketing campaign for Term Deposits, count term deposits achieved from campaign and create visuals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/marketing-campaign-for-Term-Deposits-count-term-deposits/m-p/3220408#M117694</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="477752" data-lia-user-login="jitterbug777" class="lia-mention lia-mention-user"&gt;jitterbug777&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;2 points :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;On the image of your data we can see that you try to create a measure and not a calculated column (which I think is the reason why your tablis is not recogniye)&lt;/LI&gt;&lt;LI&gt;Your IF function is not properly written (&lt;A href="https://learn.microsoft.com/en-us/dax/if-function-dax" target="_blank" rel="noopener"&gt;IF function (DAX) - DAX | Microsoft Learn&lt;/A&gt;)&lt;BR /&gt;I would write the calculated column like this :&lt;BR /&gt;existingTD = IF(Sampledata[hastermDeposit] == 1, "yes","no")&lt;BR /&gt;This way it will also take care of rows that have no data and will automatically put no&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Have a good day&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 15:40:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/marketing-campaign-for-Term-Deposits-count-term-deposits/m-p/3220408#M117694</guid>
      <dc:creator>philouduv</dc:creator>
      <dc:date>2023-05-04T15:40:42Z</dc:date>
    </item>
  </channel>
</rss>

