<?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 Formulas produce multiple rows instead of single rows in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formulas-produce-multiple-rows-instead-of-single-rows/m-p/2544175#M71755</link>
    <description>&lt;P&gt;I hope someone can please help me with this issue.&amp;nbsp; I have tables that Power BI does not relate correctly.&lt;/P&gt;&lt;P&gt;In my table visual, I am trying to get two dates on the same row so that I can subtract them.&amp;nbsp; However, the two dates appear on different rows.&amp;nbsp; I am getting double the rows in my visualization.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;For the data below, these are the two Calculated columns for the two dates:&lt;/P&gt;&lt;P&gt;Complete Intake Review = IF(AND('History: Case Detail'[Field]="Deal_Status__c",'History: Case Detail'[OldValue]="Intake Review"),'History: Case Detail'[CreatedDate].[Date],BLANK())&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New Intake Review = IF(AND('History: Case Detail'[Field]="Deal_Status__c",'History: Case Detail'[NewValue]="Intake Review"),'History: Case Detail'[CreatedDate].[Date],BLANK())&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These two dates are named the same -- CreatedDate and CreatedDate.&amp;nbsp; &amp;nbsp;I use the Created Date when NewValue is filtered for “Intake Review” and I use the Created Date when OldValue is filtered for “Intake Review”.&amp;nbsp; The data source is Salesforce. The dates represent the beginning and end of a duration of time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need them to appear on the same row so that I can subtract them. However, they appear on different rows in the visual.&lt;/P&gt;&lt;P&gt;The two tables “Case Detail” (the one) and “History:&amp;nbsp; Case Detail” (the many) are automatically many-to-one in the data model.&amp;nbsp; Case Detail[id) is a key and History: Case Detail[Parentid] is a key.&amp;nbsp; Cross filter direction is single pointing from Case Detail to&amp;nbsp; History:Case Detail.&lt;/P&gt;&lt;P&gt;Any suggestions are welcome.&amp;nbsp; Thank you.&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;</description>
    <pubDate>Fri, 27 May 2022 14:57:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-05-27T14:57:42Z</dc:date>
    <item>
      <title>Formulas produce multiple rows instead of single rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formulas-produce-multiple-rows-instead-of-single-rows/m-p/2544175#M71755</link>
      <description>&lt;P&gt;I hope someone can please help me with this issue.&amp;nbsp; I have tables that Power BI does not relate correctly.&lt;/P&gt;&lt;P&gt;In my table visual, I am trying to get two dates on the same row so that I can subtract them.&amp;nbsp; However, the two dates appear on different rows.&amp;nbsp; I am getting double the rows in my visualization.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;For the data below, these are the two Calculated columns for the two dates:&lt;/P&gt;&lt;P&gt;Complete Intake Review = IF(AND('History: Case Detail'[Field]="Deal_Status__c",'History: Case Detail'[OldValue]="Intake Review"),'History: Case Detail'[CreatedDate].[Date],BLANK())&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New Intake Review = IF(AND('History: Case Detail'[Field]="Deal_Status__c",'History: Case Detail'[NewValue]="Intake Review"),'History: Case Detail'[CreatedDate].[Date],BLANK())&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These two dates are named the same -- CreatedDate and CreatedDate.&amp;nbsp; &amp;nbsp;I use the Created Date when NewValue is filtered for “Intake Review” and I use the Created Date when OldValue is filtered for “Intake Review”.&amp;nbsp; The data source is Salesforce. The dates represent the beginning and end of a duration of time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need them to appear on the same row so that I can subtract them. However, they appear on different rows in the visual.&lt;/P&gt;&lt;P&gt;The two tables “Case Detail” (the one) and “History:&amp;nbsp; Case Detail” (the many) are automatically many-to-one in the data model.&amp;nbsp; Case Detail[id) is a key and History: Case Detail[Parentid] is a key.&amp;nbsp; Cross filter direction is single pointing from Case Detail to&amp;nbsp; History:Case Detail.&lt;/P&gt;&lt;P&gt;Any suggestions are welcome.&amp;nbsp; Thank you.&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;</description>
      <pubDate>Fri, 27 May 2022 14:57:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formulas-produce-multiple-rows-instead-of-single-rows/m-p/2544175#M71755</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-27T14:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Formulas produce multiple rows instead of single rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formulas-produce-multiple-rows-instead-of-single-rows/m-p/2544412#M71768</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how does your visual look like? Did you try to add these columns as measures using for example SELECTEDVALUE?&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 17:41:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formulas-produce-multiple-rows-instead-of-single-rows/m-p/2544412#M71768</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-27T17:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Formulas produce multiple rows instead of single rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formulas-produce-multiple-rows-instead-of-single-rows/m-p/2544657#M71786</link>
      <description>&lt;P&gt;This is what the visual looks like.&amp;nbsp; I have not tried SELECTEDVALUE, but I will now.&amp;nbsp; Thanks.&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;</description>
      <pubDate>Fri, 27 May 2022 20:00:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formulas-produce-multiple-rows-instead-of-single-rows/m-p/2544657#M71786</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-27T20:00:01Z</dc:date>
    </item>
  </channel>
</rss>

