<?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: Creating a common YearMonth column in Power BI in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-common-YearMonth-column-in-Power-BI/m-p/3920872#M152606</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Thank you for the reply!!&lt;BR /&gt;&lt;BR /&gt;Actually in the visual i want to see both Actual and Planned Lines. So what i was trying to say is If i create YearMonth column based on StartDate then only Planned Line seems working as we have used StartDate in the Planned Line and Actual Line seems doesn't working.&lt;/P&gt;</description>
    <pubDate>Wed, 15 May 2024 13:26:06 GMT</pubDate>
    <dc:creator>codingenthu</dc:creator>
    <dc:date>2024-05-15T13:26:06Z</dc:date>
    <item>
      <title>Creating a common YearMonth column in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-common-YearMonth-column-in-Power-BI/m-p/3917789#M152497</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In Power BI, I'm working with a WorkStationAudit Table containing columns such as StartDate, EndDate, CreatedDate, ResolutionDate, and Issuekey. My aim is to generate a Line and Clustered Column chart, with the x-axis representing YearMonth and the y-axis showing the count of Issuekey. The chart should include two lines: Actual and Planned. The Actual(count of actual completed wsa cumulatively) line is derived from the ResolutionDate, while the Planned line(shows cumulatively over each month how many wsa are planned for the year) is based on the StartDate. However, I'm encountering difficulty in selecting the appropriate date for the x-axis. If I use StartDate, only the Actual line functions correctly; if I opt for ResolutionDate, only the Planned line is accurate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Any ideas/Suggestions would help Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 15:23:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-common-YearMonth-column-in-Power-BI/m-p/3917789#M152497</guid>
      <dc:creator>codingenthu</dc:creator>
      <dc:date>2024-05-14T15:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a common YearMonth column in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-common-YearMonth-column-in-Power-BI/m-p/3917832#M152501</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="647695" data-lia-user-login="codingenthu" class="lia-mention lia-mention-user"&gt;codingenthu&lt;/a&gt;&amp;nbsp;Sorry, having trouble following, can you post sample data as text and expected output?&lt;BR /&gt;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 15:36:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-common-YearMonth-column-in-Power-BI/m-p/3917832#M152501</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-05-14T15:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a common YearMonth column in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-common-YearMonth-column-in-Power-BI/m-p/3919516#M152567</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="647695" data-lia-user-login="codingenthu" class="lia-mention lia-mention-user"&gt;codingenthu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on your information, I create a sample data table:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a calculated column :&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;YearMonth = FORMAT('Table'[StartDate], "YYYY-MM")&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then create two measures :&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Actual Count = CALCULATE(SUM('Table'[Issuekey]), FILTER(ALL('Table'), 'Table'[ResolutionDate] &amp;lt;= MAX('Table'[ResolutionDate])))

Planned Count = CALCULATE(SUM('Table'[Issuekey]), FILTER(ALL('Table'), 'Table'[StartDate] &amp;lt;= MAX('Table'[StartDate])))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my preview:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A title="https://community.powerbi.com/t5/community-blog/how-to-get-your-question-answered-quickly/ba-p/38490" href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-Get-Your-Question-Answered-Quickly%2Fba-p%2F38490&amp;amp;data=05%7C02%7Cv-yohua%40microsoft.com%7Ce1106bfabecb4734a5cc08dc2305bc51%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638423754744679080%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&amp;amp;sdata=24%2BceC5sFd3n3%2FhFDYILWFcNjCwVClBD%2BPBsSLVfJGk%3D&amp;amp;reserved=0" target="_blank" rel="noopener nofollow noreferrer"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yongkang Hua&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 06:57:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-common-YearMonth-column-in-Power-BI/m-p/3919516#M152567</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-15T06:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a common YearMonth column in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-common-YearMonth-column-in-Power-BI/m-p/3920872#M152606</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;Thank you for the reply!!&lt;BR /&gt;&lt;BR /&gt;Actually in the visual i want to see both Actual and Planned Lines. So what i was trying to say is If i create YearMonth column based on StartDate then only Planned Line seems working as we have used StartDate in the Planned Line and Actual Line seems doesn't working.&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 13:26:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-common-YearMonth-column-in-Power-BI/m-p/3920872#M152606</guid>
      <dc:creator>codingenthu</dc:creator>
      <dc:date>2024-05-15T13:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a common YearMonth column in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-common-YearMonth-column-in-Power-BI/m-p/3921244#M152616</link>
      <description>&lt;P&gt;I think what you need is to have a single date (dimension) table and multiple relationships. Then, create measures with USERELATIONSHIP. Checkout&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/dax/userelationship-function-dax" target="_blank"&gt;https://learn.microsoft.com/en-us/dax/userelationship-function-dax&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 15:43:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-common-YearMonth-column-in-Power-BI/m-p/3921244#M152616</guid>
      <dc:creator>sjoerdvn</dc:creator>
      <dc:date>2024-05-15T15:43:23Z</dc:date>
    </item>
  </channel>
</rss>

