<?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: Calculate and display ratio (  eg 1 : 2 ) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-and-display-ratio-eg-1-2/m-p/1066539#M14904</link>
    <description>&lt;P&gt;Well, you could return "1:" &amp;amp; [num]. Or if you want to keep it as a number under the hood, you could use the technique found here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 04 May 2020 11:50:10 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2020-05-04T11:50:10Z</dc:date>
    <item>
      <title>Calculate and display ratio (  eg 1 : 2 )</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-and-display-ratio-eg-1-2/m-p/1065927#M14889</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to claculate number of call to number of opportunity ratio. i.e. if i have made 10 calls to a customer and those calls generated 5 oppotunities, my calls to opportunity ratio is ( 10/5 = 2) 1:2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to know how to display the ratio 1:2 , what are the fomratting OR DAX i should use ?&lt;/P&gt;&lt;P&gt;I dn't want to display "2" instaed i want to display "1:2".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 08:56:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-and-display-ratio-eg-1-2/m-p/1065927#M14889</guid>
      <dc:creator>KRISH80</dc:creator>
      <dc:date>2020-05-04T08:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate and display ratio (  eg 1 : 2 )</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-and-display-ratio-eg-1-2/m-p/1066539#M14904</link>
      <description>&lt;P&gt;Well, you could return "1:" &amp;amp; [num]. Or if you want to keep it as a number under the hood, you could use the technique found here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 11:50:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-and-display-ratio-eg-1-2/m-p/1066539#M14904</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-05-04T11:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate and display ratio (  eg 1 : 2 )</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-and-display-ratio-eg-1-2/m-p/1066710#M14911</link>
      <description>&lt;P&gt;You have to calculate 2 measures:&lt;/P&gt;
&lt;P&gt;[Number of Calls]&lt;BR /&gt;[Number of Opportunities]&lt;/P&gt;
&lt;P&gt;Then you have to find the GCD using the GCD DAX function and then divide both by this GCD and then create such a measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Your Final measure] =
var __calls = [Number Of Calls]
var __opps = [Number of Opportunities]
var __gcd = GCD( __calls, __opps )
var __result =
	COMBINEVALUES(
		":", // delimiter
		int(__opps / __gcd ),
		int(__calls / __gcd )
	)
return
	__result
&lt;/LI-CODE&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;D&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 12:53:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-and-display-ratio-eg-1-2/m-p/1066710#M14911</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-04T12:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate and display ratio (  eg 1 : 2 )</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-and-display-ratio-eg-1-2/m-p/1066773#M14916</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp; thanks a lot. But what i am getting with your DA is shown in table below.&lt;/P&gt;&lt;P&gt;What i need is, for eg - i have had 49 meetings with HDFC and generated 9 deals. So my meeting to deal ratio is =DIVIDE (49,9) and show 5:1. that means i have to have 5 meetings to generate 1 deal.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Account&lt;/TD&gt;&lt;TD&gt;Total Meeting&lt;/TD&gt;&lt;TD&gt;# of Deals&lt;/TD&gt;&lt;TD&gt;Calls to Deal Ratio&lt;/TD&gt;&lt;TD&gt;Actualy it should show&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;HDFC&lt;/TD&gt;&lt;TD&gt;49&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;TD&gt;9:49&lt;/TD&gt;&lt;TD&gt;5:1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 04 May 2020 13:16:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-and-display-ratio-eg-1-2/m-p/1066773#M14916</guid>
      <dc:creator>KRISH80</dc:creator>
      <dc:date>2020-05-04T13:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate and display ratio (  eg 1 : 2 )</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-and-display-ratio-eg-1-2/m-p/1066792#M14917</link>
      <description>You are not stating your problems clearly.&lt;BR /&gt;&lt;BR /&gt;First off, 9 does not go into 49 evenly. Secondly, 49:9 = 5.44:1 = 544:100 = 136:25. You have not stated what it really is you want. Based on what I've given you, hopefully you can build your own solution.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Mon, 04 May 2020 13:25:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-and-display-ratio-eg-1-2/m-p/1066792#M14917</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-04T13:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate and display ratio (  eg 1 : 2 )</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-and-display-ratio-eg-1-2/m-p/1066873#M14922</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Thanks a lot&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 13:52:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-and-display-ratio-eg-1-2/m-p/1066873#M14922</guid>
      <dc:creator>KRISH80</dc:creator>
      <dc:date>2020-05-04T13:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate and display ratio (  eg 1 : 2 )</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-and-display-ratio-eg-1-2/m-p/1066879#M14924</link>
      <description>&lt;P&gt;Thanks a lot Greg.&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 13:54:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-and-display-ratio-eg-1-2/m-p/1066879#M14924</guid>
      <dc:creator>KRISH80</dc:creator>
      <dc:date>2020-05-04T13:54:12Z</dc:date>
    </item>
  </channel>
</rss>

