<?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 Changing Measure Formula when using slicer in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Changing-Measure-Formula-when-using-slicer/m-p/652947#M18907</link>
    <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;i created a table with 2 rows only called "ChurnType" with "Type" inside that only has "Partner and Customer"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my measure:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Churn Rate = IF([#Churn] = 0, 0, ([#Churn] + [#Lost]) / ([#Renewable] + [#Lost]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;And what i want to do is:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Churn Rate = IF([#Churn] = 0, 0, ([#Churn] + IF(ChurnType[Type] = "Partner", 0, [#Lost])) / ([#Renewable] + IF(ChurnType[Type] = "Partner", 0, [#Lost])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But gives me the error "a single value for column "Type" in table... cannot be determined... column tahat contains many values..."&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;What i want is when i select option in slicer the formula changes because is differente from partner to customer.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I would apreciate some help on how to solve this.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 25 Mar 2019 12:27:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-03-25T12:27:21Z</dc:date>
    <item>
      <title>Changing Measure Formula when using slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Changing-Measure-Formula-when-using-slicer/m-p/652947#M18907</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;i created a table with 2 rows only called "ChurnType" with "Type" inside that only has "Partner and Customer"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my measure:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Churn Rate = IF([#Churn] = 0, 0, ([#Churn] + [#Lost]) / ([#Renewable] + [#Lost]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;And what i want to do is:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Churn Rate = IF([#Churn] = 0, 0, ([#Churn] + IF(ChurnType[Type] = "Partner", 0, [#Lost])) / ([#Renewable] + IF(ChurnType[Type] = "Partner", 0, [#Lost])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But gives me the error "a single value for column "Type" in table... cannot be determined... column tahat contains many values..."&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;What i want is when i select option in slicer the formula changes because is differente from partner to customer.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I would apreciate some help on how to solve this.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 25 Mar 2019 12:27:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Changing-Measure-Formula-when-using-slicer/m-p/652947#M18907</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-25T12:27:21Z</dc:date>
    </item>
  </channel>
</rss>

