<?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 for finding conversion rate in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-finding-conversion-rate/m-p/2471062#M67281</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created a sample pbix file(&lt;STRONG&gt;see attachment&lt;/STRONG&gt;) for you, please check whether that is what you want.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Create the two &lt;STRONG&gt;calculated column&lt;/STRONG&gt;s as below to get the special week number&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;StartdayofWeek = 'Table'[Date]
                    + -1
                        * IF (
                            WEEKDAY ( 'Table'[Date] ) &amp;lt; 6,
                            WEEKDAY ( 'Table'[Date] ) + 1,
                            WEEKDAY ( 'Table'[Date] ) - 6
                        )&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Week = 
1 + WEEKNUM ( 'Table'[StartdayofWeek], 1 )
    - WEEKNUM ( STARTOFMONTH ( 'Table'[StartdayofWeek] ), 1 )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. Create a &lt;STRONG&gt;measure&lt;/STRONG&gt; as below to get the conversion rate&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Conversion rate = 
VAR _appcount =
    SUM ( 'Table'[Application Count] )
VAR _premonthinqcount =
    CALCULATE (
        SUM ( 'Table'[Inquiry Count] ),
        FILTER (
            ALLSELECTED ( 'Table' ),
            YEAR ( 'Table'[Date] ) = SELECTEDVALUE ( 'Table'[Date].[Year] )
                &amp;amp;&amp;amp; MONTH ( 'Table'[Date] )
                    = SELECTEDVALUE ( 'Table'[Date].[MonthNo] ) - 1
                &amp;amp;&amp;amp; 'Table'[Week] = SELECTEDVALUE ( 'Table'[Week] )
        )
    )
RETURN
    DIVIDE ( _appcount, _premonthinqcount, 0 )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If the above one can't help you get the desired result, please provide some &lt;STRONG&gt;sample data&lt;/STRONG&gt; in your tables (&lt;EM&gt;&lt;STRONG&gt;exclude &lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;sensitive &lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/EM&gt;) with &lt;STRONG&gt;Text&lt;/STRONG&gt; format and your &lt;STRONG&gt;expected result&lt;/STRONG&gt; with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FDesktop%2FHow-to-upload-PBI-in-Community%2Fm-p%2F1672886&amp;amp;data=04%7C01%7Cv-yiruan%40microsoft.com%7C4f580813734d4a8355b008da16f6e91a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637847547341062885%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;amp;sdata=YJvujige2YITXKbKED9JieQm5LBdf%2F3IYPM4ggdiijQ%3D&amp;amp;reserved=0" target="_blank"&gt;How to upload PBI in Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Fri, 22 Apr 2022 09:15:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-04-22T09:15:09Z</dc:date>
    <item>
      <title>Dax for finding conversion rate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-finding-conversion-rate/m-p/2464139#M66875</link>
      <description>&lt;P&gt;Hello altruist,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to find the inquiry to the application conversion rate for the current week in comparison to the inquiry in the same week last month. Here's a snapshot of the source table and the target table. Does anyone have any idea how to find the conversion rate?&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 19:40:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-finding-conversion-rate/m-p/2464139#M66875</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-19T19:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dax for finding conversion rate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-finding-conversion-rate/m-p/2464584#M66929</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; ,&amp;nbsp; Creat a date table with the week &lt;/P&gt;
&lt;P&gt;Create a Friday week from here&lt;/P&gt;
&lt;P&gt;Any Weekday Week - Start From Any day of Week &lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Any-Weekday-Week-Decoding-Date-and-Calendar-2-5-Power-BI-Turning/ba-p/1187482" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Any-Weekday-Week-Decoding-Date-and-Calendar-2-5-Power-BI-Turning/ba-p/1187482&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then&lt;/P&gt;
&lt;P&gt;you need measures&lt;/P&gt;
&lt;P&gt;Inquiry = Sum(Table[Count of&amp;nbsp;Inquiry]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Applications= Sum(Table[Application Count]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Conversion = divide([Inquiry ],[Applications])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;refer if needed&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI — Month on Month with or Without Time Intelligence &lt;BR /&gt;&lt;A href="https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e" target="_blank"&gt;https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=6LUBbvcxtKA" target="_blank"&gt;https://www.youtube.com/watch?v=6LUBbvcxtKA&lt;/A&gt;&lt;BR /&gt;Power BI — Week on Week and WTD &lt;BR /&gt;&lt;A href="https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3" target="_blank"&gt;https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=pnAesWxYgJ8" target="_blank"&gt;https://www.youtube.com/watch?v=pnAesWxYgJ8&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 02:01:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-finding-conversion-rate/m-p/2464584#M66929</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-04-20T02:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dax for finding conversion rate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-finding-conversion-rate/m-p/2471062#M67281</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created a sample pbix file(&lt;STRONG&gt;see attachment&lt;/STRONG&gt;) for you, please check whether that is what you want.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Create the two &lt;STRONG&gt;calculated column&lt;/STRONG&gt;s as below to get the special week number&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;StartdayofWeek = 'Table'[Date]
                    + -1
                        * IF (
                            WEEKDAY ( 'Table'[Date] ) &amp;lt; 6,
                            WEEKDAY ( 'Table'[Date] ) + 1,
                            WEEKDAY ( 'Table'[Date] ) - 6
                        )&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Week = 
1 + WEEKNUM ( 'Table'[StartdayofWeek], 1 )
    - WEEKNUM ( STARTOFMONTH ( 'Table'[StartdayofWeek] ), 1 )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. Create a &lt;STRONG&gt;measure&lt;/STRONG&gt; as below to get the conversion rate&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Conversion rate = 
VAR _appcount =
    SUM ( 'Table'[Application Count] )
VAR _premonthinqcount =
    CALCULATE (
        SUM ( 'Table'[Inquiry Count] ),
        FILTER (
            ALLSELECTED ( 'Table' ),
            YEAR ( 'Table'[Date] ) = SELECTEDVALUE ( 'Table'[Date].[Year] )
                &amp;amp;&amp;amp; MONTH ( 'Table'[Date] )
                    = SELECTEDVALUE ( 'Table'[Date].[MonthNo] ) - 1
                &amp;amp;&amp;amp; 'Table'[Week] = SELECTEDVALUE ( 'Table'[Week] )
        )
    )
RETURN
    DIVIDE ( _appcount, _premonthinqcount, 0 )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If the above one can't help you get the desired result, please provide some &lt;STRONG&gt;sample data&lt;/STRONG&gt; in your tables (&lt;EM&gt;&lt;STRONG&gt;exclude &lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;sensitive &lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/EM&gt;) with &lt;STRONG&gt;Text&lt;/STRONG&gt; format and your &lt;STRONG&gt;expected result&lt;/STRONG&gt; with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FDesktop%2FHow-to-upload-PBI-in-Community%2Fm-p%2F1672886&amp;amp;data=04%7C01%7Cv-yiruan%40microsoft.com%7C4f580813734d4a8355b008da16f6e91a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637847547341062885%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;amp;sdata=YJvujige2YITXKbKED9JieQm5LBdf%2F3IYPM4ggdiijQ%3D&amp;amp;reserved=0" target="_blank"&gt;How to upload PBI in Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 09:15:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-finding-conversion-rate/m-p/2471062#M67281</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-22T09:15:09Z</dc:date>
    </item>
  </channel>
</rss>

