<?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 MDX to DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MDX-to-DAX/m-p/2466471#M67014</link>
    <description>&lt;P&gt;I am facing complexity while converting MDX to DAX(SSAS to PowerBI). Can you please help here to convert below calculations&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;SUM(PeriodsToDate([Time_Period].[Time_Period].[Period],[Time_Period].[Time_Period].CurrentMember),[Measures].[Hrs_Act_Admin_POS])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;SUM(([Time_Period].[Time_Period].currentmember.parent.firstsibling.firstchild:[Time_Period].[Time_Period].currentmember.parent.lastsibling.lastchild),&lt;BR /&gt;[Measures].[Hrs_LY_Admin_POS])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3.&amp;nbsp;&lt;/P&gt;&lt;P&gt;SUM(([Time_Period].[Time_Period].currentmember.FirstSibling:[Time_Period].[Time_Period].currentmember.lastsibling),[Measures].[Hrs_LY_POS])&lt;/P&gt;</description>
    <pubDate>Wed, 20 Apr 2022 12:24:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-04-20T12:24:22Z</dc:date>
    <item>
      <title>MDX to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MDX-to-DAX/m-p/2466471#M67014</link>
      <description>&lt;P&gt;I am facing complexity while converting MDX to DAX(SSAS to PowerBI). Can you please help here to convert below calculations&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;SUM(PeriodsToDate([Time_Period].[Time_Period].[Period],[Time_Period].[Time_Period].CurrentMember),[Measures].[Hrs_Act_Admin_POS])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;SUM(([Time_Period].[Time_Period].currentmember.parent.firstsibling.firstchild:[Time_Period].[Time_Period].currentmember.parent.lastsibling.lastchild),&lt;BR /&gt;[Measures].[Hrs_LY_Admin_POS])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3.&amp;nbsp;&lt;/P&gt;&lt;P&gt;SUM(([Time_Period].[Time_Period].currentmember.FirstSibling:[Time_Period].[Time_Period].currentmember.lastsibling),[Measures].[Hrs_LY_POS])&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 12:24:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MDX-to-DAX/m-p/2466471#M67014</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-20T12:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: MDX to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MDX-to-DAX/m-p/2467049#M67041</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Can you tell us what these are doing , might be easy to suggest &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;also, check&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/converting-mdx-to-dax-first-steps/" target="_blank"&gt;https://www.sqlbi.com/articles/converting-mdx-to-dax-first-steps/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 16:16:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MDX-to-DAX/m-p/2467049#M67041</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-04-20T16:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: MDX to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MDX-to-DAX/m-p/2467672#M67080</link>
      <description>&lt;P&gt;HI Amith,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are calculated mesures in my SSAS multildimensinal model. We are planning to migrate the same to PowerBI reports.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 02:03:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MDX-to-DAX/m-p/2467672#M67080</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-21T02:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: MDX to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MDX-to-DAX/m-p/2467872#M67089</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , I am not an expert at MDX, so wanted what you need, so I can help.&lt;/P&gt;
&lt;P&gt;Like we have functions datesmtd, Datesqtd, and datesytd for till date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))&lt;/P&gt;
&lt;P&gt;YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"12/31"))&lt;/P&gt;
&lt;P&gt;QTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESQTD(('Date'[Date])))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But we can combine them with slicer selection&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Switch Period = &lt;BR /&gt;var _max = if(isfiltered('Date'),MAX( 'Date'[Date]) , today())&lt;BR /&gt;var _min =&lt;BR /&gt;SWITCH(SELECTEDVALUE(Period[PeriodType])&lt;BR /&gt;"YTD",if( Month(_max) &amp;lt;4 , date(year(_max)-1,4,1) ,date(year(_max),4,1)), //FY April -March&lt;BR /&gt;"QTD",eomonth(_max,-1* if( mod(Month(_max),3) =0,3,Month(_max)))+1,&lt;BR /&gt;"MTD",eomonth(_max,-1)+1 ,&lt;BR /&gt;BLANK())&lt;BR /&gt;return&lt;BR /&gt;CALCULATE(Sum(Sales[Sales[Amount]),DATESBETWEEN('Date'[Date],_min,_max))&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 04:20:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MDX-to-DAX/m-p/2467872#M67089</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-04-21T04:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: MDX to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MDX-to-DAX/m-p/2467907#M67093</link>
      <description>&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;Thank you so much for your response. Please find below details of mdx query details.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Measure = SUM(PeriodsToDate([Time_Period].[Time_Period].[Period],[Time_Period].[Time_Period].CurrentMember),[Measures].[Hrs_Act_Admin_POS])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Above MDX query is to create calculated measure for belwo purpose.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;to navigate between same level members. It returns the set of sibling members from First Sibling to the specified member. For example, If you want to list the members from one position to a particular member, then we can use this MDX PeriodsToDate function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;for more information about PeriodToDate&amp;nbsp;&lt;A href="https://www.tutorialgateway.org/mdx-periodstodate-function/" target="_blank"&gt;https://www.tutorialgateway.org/mdx-periodstodate-function/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 05:10:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MDX-to-DAX/m-p/2467907#M67093</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-21T05:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: MDX to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MDX-to-DAX/m-p/2470710#M67259</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if there is any suggesions.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 07:02:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MDX-to-DAX/m-p/2470710#M67259</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-22T07:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: MDX to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MDX-to-DAX/m-p/2477316#M67681</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;In order to be able to provide you with a suitable solution more quickly, could you please provide some simplified&amp;nbsp;&lt;STRONG&gt;sample data&lt;/STRONG&gt; in your tables (&lt;EM&gt;&lt;STRONG&gt;exclude &lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;sensitive &lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/EM&gt;) with &lt;STRONG&gt;Text&lt;/STRONG&gt; format and your &lt;STRONG&gt;expected result&lt;/STRONG&gt; with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FDesktop%2FHow-to-upload-PBI-in-Community%2Fm-p%2F1672886&amp;amp;data=04%7C01%7Cv-yiruan%40microsoft.com%7C4f580813734d4a8355b008da16f6e91a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637847547341062885%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;amp;sdata=YJvujige2YITXKbKED9JieQm5LBdf%2F3IYPM4ggdiijQ%3D&amp;amp;reserved=0" target="_blank"&gt;How to upload PBI in Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 09:46:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MDX-to-DAX/m-p/2477316#M67681</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-26T09:46:46Z</dc:date>
    </item>
  </channel>
</rss>

