<?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 How to multiply a specific value in one column by -1 depeding on text from another column? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-multiply-a-specific-value-in-one-column-by-1-depeding-on/m-p/2850680#M91351</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some cells in the column "Kommentar" include cells with texts like this: 04.10.2022 - ÜÜ&amp;nbsp; or this:&amp;nbsp; 24.10.2022 - ÜÜN&lt;BR /&gt;Dates may vary, important in this case are only ÜÜ and ÜÜN. Almost every other cell in the column "Kommentar" is blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some cells in the column "Grund Abwesend" include cells with the text "Feiertag".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The numbers of the column "Einzeldauer" must be copied to the column "Ersatz f Abw" as long as the text of the cell in column&amp;nbsp;"Grund Abwesend" includes "Feiertag" and the cell in the column "Kommentar" inludes "ÜÜ".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Further to that:&lt;/P&gt;&lt;P&gt;The numbers of the column "Einzeldauer" must be multiplied by -1 and copied to the column "Ersatz f Abw" as long as the text of the cell in column&amp;nbsp;"Grund Abwesend" includes "Feiertag" and the cell in the column "Kommentar" inludes "ÜÜN".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If both conditions do not apply then the corresponding cells of the column&amp;nbsp;"Ersatz f Abw" should show "null".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas how to solve that? Thank you in advance!&lt;/P&gt;</description>
    <pubDate>Wed, 19 Oct 2022 08:24:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-10-19T08:24:44Z</dc:date>
    <item>
      <title>How to multiply a specific value in one column by -1 depeding on text from another column?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-multiply-a-specific-value-in-one-column-by-1-depeding-on/m-p/2850680#M91351</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some cells in the column "Kommentar" include cells with texts like this: 04.10.2022 - ÜÜ&amp;nbsp; or this:&amp;nbsp; 24.10.2022 - ÜÜN&lt;BR /&gt;Dates may vary, important in this case are only ÜÜ and ÜÜN. Almost every other cell in the column "Kommentar" is blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some cells in the column "Grund Abwesend" include cells with the text "Feiertag".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The numbers of the column "Einzeldauer" must be copied to the column "Ersatz f Abw" as long as the text of the cell in column&amp;nbsp;"Grund Abwesend" includes "Feiertag" and the cell in the column "Kommentar" inludes "ÜÜ".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Further to that:&lt;/P&gt;&lt;P&gt;The numbers of the column "Einzeldauer" must be multiplied by -1 and copied to the column "Ersatz f Abw" as long as the text of the cell in column&amp;nbsp;"Grund Abwesend" includes "Feiertag" and the cell in the column "Kommentar" inludes "ÜÜN".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If both conditions do not apply then the corresponding cells of the column&amp;nbsp;"Ersatz f Abw" should show "null".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas how to solve that? Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 08:24:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-multiply-a-specific-value-in-one-column-by-1-depeding-on/m-p/2850680#M91351</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-19T08:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to multiply a specific value in one column by -1 depeding on text from another column?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-multiply-a-specific-value-in-one-column-by-1-depeding-on/m-p/2851021#M91384</link>
      <description>&lt;P&gt;This is not really a DAX question, since this problem should be resolved in the data model. You can either do this in Power Query inside Power bi desktop / dataflows (ask in the Power Query forum section) or if possible, in your database before you load data into Power Bi.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 10:17:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-multiply-a-specific-value-in-one-column-by-1-depeding-on/m-p/2851021#M91384</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-19T10:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to multiply a specific value in one column by -1 depeding on text from another column?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-multiply-a-specific-value-in-one-column-by-1-depeding-on/m-p/2851047#M91386</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;Ersatz f Abw =
VAR GrundAbwesend = 'Table'[Grund Abwesend]
VAR Kommentar = 'Table'[Kommentar]
VAR Einzeldauer = 'Table'[Einzeldauer]
RETURN
    IF (
        GrundAbwesend = "Feiertag"
            &amp;amp;&amp;amp; CONTAINSSTRING ( Kommentar, "ÜÜ" ),
        - Einzeldauer
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 19 Oct 2022 10:22:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-multiply-a-specific-value-in-one-column-by-1-depeding-on/m-p/2851047#M91386</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-10-19T10:22:40Z</dc:date>
    </item>
  </channel>
</rss>

