<?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 transform a Power BI date column by range in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-transform-a-Power-BI-date-column-by-range/m-p/2851930#M91457</link>
    <description>&lt;P&gt;Would someone give me a hand here? Still learning Power BI transformations.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a column called created_at that has dates in format of&amp;nbsp;ISO 8601 format YYYY-MM-DDTHH:MM:SSZ (Date/Time/TimeZone).&amp;nbsp; I want to transform that column so that every value that is before 05/15/2022 is changed TO 05/15/2022 otherwise, leave the value the same.&amp;nbsp; So the column should only have dates listed as 05/15/2022 or later.&amp;nbsp;&amp;nbsp;&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>Wed, 19 Oct 2022 18:02:52 GMT</pubDate>
    <dc:creator>rsderby68</dc:creator>
    <dc:date>2022-10-19T18:02:52Z</dc:date>
    <item>
      <title>How to transform a Power BI date column by range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-transform-a-Power-BI-date-column-by-range/m-p/2851930#M91457</link>
      <description>&lt;P&gt;Would someone give me a hand here? Still learning Power BI transformations.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a column called created_at that has dates in format of&amp;nbsp;ISO 8601 format YYYY-MM-DDTHH:MM:SSZ (Date/Time/TimeZone).&amp;nbsp; I want to transform that column so that every value that is before 05/15/2022 is changed TO 05/15/2022 otherwise, leave the value the same.&amp;nbsp; So the column should only have dates listed as 05/15/2022 or later.&amp;nbsp;&amp;nbsp;&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>Wed, 19 Oct 2022 18:02:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-transform-a-Power-BI-date-column-by-range/m-p/2851930#M91457</guid>
      <dc:creator>rsderby68</dc:creator>
      <dc:date>2022-10-19T18:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to transform a Power BI date column by range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-transform-a-Power-BI-date-column-by-range/m-p/2852043#M91471</link>
      <description>&lt;P&gt;assuming the previous step name is "#Changed Type"&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;= Table.TransformColumns(#"Changed Type",{{"created_at", each List.Max({_,#datetimezone(2022,5,15,0,0,0,0,0)}), type datetimezone}})&lt;/LI-CODE&gt;&lt;P&gt;you can adjust time zone with the last 2 parameters of #datetimezone&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 19:43:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-transform-a-Power-BI-date-column-by-range/m-p/2852043#M91471</guid>
      <dc:creator>Stachu</dc:creator>
      <dc:date>2022-10-19T19:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to transform a Power BI date column by range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-transform-a-Power-BI-date-column-by-range/m-p/2852056#M91475</link>
      <description>&lt;P&gt;Forgive my blankness but would you clarify what the "&lt;SPAN&gt;previous step name is "#Changed Type"" is for?&amp;nbsp; Is "Changed Type" the original column name you mean?&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for the formula I will try it!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 19:59:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-transform-a-Power-BI-date-column-by-range/m-p/2852056#M91475</guid>
      <dc:creator>rsderby68</dc:creator>
      <dc:date>2022-10-19T19:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to transform a Power BI date column by range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-transform-a-Power-BI-date-column-by-range/m-p/2852057#M91476</link>
      <description>&lt;P&gt;Forgive my blankness but would you clarify what the "&lt;SPAN&gt;previous step name is "#Changed Type"" is for?&amp;nbsp; Is "Changed Type" the original column name you mean?&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for the formula I will try it!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 19:59:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-transform-a-Power-BI-date-column-by-range/m-p/2852057#M91476</guid>
      <dc:creator>rsderby68</dc:creator>
      <dc:date>2022-10-19T19:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to transform a Power BI date column by range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-transform-a-Power-BI-date-column-by-range/m-p/2854253#M91665</link>
      <description>&lt;P&gt;In the Transform data mode, one you enable Query Settings in the View ribbon, you will be able to see the transformation steps in each table, the code I posted assumes that the previous step is called "#Changed Type" as in the picture below&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 18:08:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-transform-a-Power-BI-date-column-by-range/m-p/2854253#M91665</guid>
      <dc:creator>Stachu</dc:creator>
      <dc:date>2022-10-20T18:08:45Z</dc:date>
    </item>
  </channel>
</rss>

