<?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: 1 chart with different type date (monthly vs daily) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-chart-with-different-type-date-monthly-vs-daily/m-p/2643658#M77729</link>
    <description>&lt;P&gt;May I ask how the current month is selected on the report page?&lt;/P&gt;&lt;P&gt;only two months, in chart I want to show previous month (month to date) and current month (daily)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it selected by a slicer selection on the report page?&lt;/P&gt;&lt;P&gt;yes Kim, for current month &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I want to choose the date I like&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;do you want to show all months and dates on one visualization?&lt;/P&gt;&lt;P&gt;only prev month and daily current month&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jul 2022 04:46:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-07-18T04:46:28Z</dc:date>
    <item>
      <title>1 chart with different type date (monthly vs daily)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-chart-with-different-type-date-monthly-vs-daily/m-p/2630807#M76948</link>
      <description>&lt;P&gt;hi everyone&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;hope you are healthy&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i've problem to comparing actual monthly vs actual daily in 1 chart.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is it possible to make 1 chart with a combination of monthly and daily?&lt;/P&gt;&lt;P&gt;&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>Mon, 11 Jul 2022 11:14:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-chart-with-different-type-date-monthly-vs-daily/m-p/2630807#M76948</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-11T11:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: 1 chart with different type date (monthly vs daily)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-chart-with-different-type-date-monthly-vs-daily/m-p/2630904#M76952</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;I hope this can provide some ideas on how to create a solution for your data model.&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;LI-CODE lang="markup"&gt;Qty total expected result: =
IF (
    SELECTEDVALUE ( 'Axis create'[Required axis] ) = "January",
    CALCULATE (
        SUM ( Data[Quantity] ),
        TREATAS ( VALUES ( 'Axis create'[Key] ), 'Calendar'[End of Month] )
    ),
    CALCULATE (
        SUM ( Data[Quantity] ),
        TREATAS ( VALUES ( 'Axis create'[Key] ), 'Calendar'[Date] )
    )
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 11 Jul 2022 11:41:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-chart-with-different-type-date-monthly-vs-daily/m-p/2630904#M76952</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-07-11T11:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: 1 chart with different type date (monthly vs daily)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-chart-with-different-type-date-monthly-vs-daily/m-p/2630943#M76956</link>
      <description>&lt;P&gt;awesome Kim,&lt;/P&gt;&lt;P&gt;thanks for help me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but if I use this code - &lt;STRONG&gt;SELECTEDVALUE ( 'Axis create'[Required axis] ) = "January"&lt;/STRONG&gt; -the report it can be static. &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;what if the month changes (Jan to Feb, Feb to Mar, Mar to Apr etc)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;? can I use code previous month Kim?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 11:59:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-chart-with-different-type-date-monthly-vs-daily/m-p/2630943#M76956</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-11T11:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: 1 chart with different type date (monthly vs daily)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-chart-with-different-type-date-monthly-vs-daily/m-p/2630982#M76958</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for your feedback.&lt;/P&gt;
&lt;P&gt;May I ask how the current month is selected on the report page? Is it selected by a slicer selection on the report page? Or, do you want to show all months and dates on one visualization?&lt;/P&gt;
&lt;P&gt;Or, please share your sample pbix file's link here, and then I can try to come up with a more accurate solution.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 12:10:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-chart-with-different-type-date-monthly-vs-daily/m-p/2630982#M76958</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-07-11T12:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: 1 chart with different type date (monthly vs daily)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-chart-with-different-type-date-monthly-vs-daily/m-p/2638451#M77413</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="background: white;"&gt;&lt;SPAN&gt;I just want to confirm if you resolved this issue? If yes,&amp;nbsp;&lt;U&gt;you can accept the answer helpful as the solution&lt;/U&gt;&amp;nbsp;&lt;STRONG&gt;or&lt;/STRONG&gt;&amp;nbsp;&lt;U&gt;share you method and accept it as solution&lt;/U&gt;, thanks for your contribution to improve Power BI.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;If you need more help, please let me know.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN&gt;Community Support Team _Tang&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 10:27:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-chart-with-different-type-date-monthly-vs-daily/m-p/2638451#M77413</guid>
      <dc:creator>v-xiaotang</dc:creator>
      <dc:date>2022-07-14T10:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: 1 chart with different type date (monthly vs daily)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-chart-with-different-type-date-monthly-vs-daily/m-p/2643658#M77729</link>
      <description>&lt;P&gt;May I ask how the current month is selected on the report page?&lt;/P&gt;&lt;P&gt;only two months, in chart I want to show previous month (month to date) and current month (daily)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it selected by a slicer selection on the report page?&lt;/P&gt;&lt;P&gt;yes Kim, for current month &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I want to choose the date I like&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;do you want to show all months and dates on one visualization?&lt;/P&gt;&lt;P&gt;only prev month and daily current month&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 04:46:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-chart-with-different-type-date-monthly-vs-daily/m-p/2643658#M77729</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-18T04:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: 1 chart with different type date (monthly vs daily)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-chart-with-different-type-date-monthly-vs-daily/m-p/2645592#M77824</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please check the attached pbix file.&lt;/P&gt;
&lt;P&gt;I created a new Axis table, and applied the below measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Qty total expected result: =
VAR _currentmonthend =
    MAX ( 'Calendar'[Date] )
VAR _previousmonthend =
    EOMONTH ( _currentmonthend, -1 )
RETURN
    SWITCH (
        TRUE (),
        SELECTEDVALUE ( 'Axis table'[Monthkey] ) = _previousmonthend,
            CALCULATE (
                SUM ( Data[Quantity] ),
                FILTER ( ALL ( 'Calendar' ), 'Calendar'[End of Month] = _previousmonthend )
            ),
        CALCULATE (
            SUM ( Data[Quantity] ),
            KEEPFILTERS (
                FILTER (
                    ALL ( 'Calendar'[Date] ),
                    'Calendar'[Date] = MAX ( 'Axis table'[Datekey] )
                )
            )
        )
    )
&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 18 Jul 2022 17:38:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-chart-with-different-type-date-monthly-vs-daily/m-p/2645592#M77824</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-07-18T17:38:38Z</dc:date>
    </item>
  </channel>
</rss>

