<?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: Dynamic X-Axis Chart based on Parameter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-X-Axis-Chart-based-on-Parameter/m-p/1831438#M38950</link>
    <description>&lt;P&gt;You can't use DATESBETEEN as a value for a measure (or a calculated column) since measures return only SCALARS, not tables. Only in one case are you authorized to assign a table to a measure value - when the table holds only one column and one row. In this case DAX turns the table into a value automatically. Also, I'd kindly suggest that you learn about time-intelligence in Power BI because I can see you're doing it incorrectly, which means sooner or later you'll have mistakes/bugs in your figures.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can start here:&amp;nbsp;&lt;A href="https://www.sqlbi.com/articles/time-intelligence-in-power-bi-desktop/" target="_blank"&gt;https://www.sqlbi.com/articles/time-intelligence-in-power-bi-desktop/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and then head over to:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/guidance/star-schema" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/guidance/star-schema&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please learn the philosophy of Power BI and how DAX works to avoid common mistakes.&lt;/P&gt;</description>
    <pubDate>Sat, 08 May 2021 16:13:09 GMT</pubDate>
    <dc:creator>daxer-almighty</dc:creator>
    <dc:date>2021-05-08T16:13:09Z</dc:date>
    <item>
      <title>Dynamic X-Axis Chart based on Parameter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-X-Axis-Chart-based-on-Parameter/m-p/1831322#M38943</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am from tableau world and need to know more about PowerBI. I am trying to reflect my tableau dashboard in Power BI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a parameter with values 'YTD','MTD','Previous YTD','Previous MTD','Previous Month','Previous Year','Year-over-year'. In tableau the date values changes in x-axis based on parameter input. Yaxis would display sales and profit.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using below DAX as mesure as well as column. Both resulter in the displayed warning and it didn't work.&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;P&gt;Still lot more else statments to be written for YTD, PYTD,etc. But here itself I am facing issue. Also I am not sure why I need to use MAX(Paramter Value). If I use Query2[Analysis Selection], then I get an error in DAX "Cannot find name [Analysis Selection]'.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I create a seperate tableau I had to inter relate the tables. Is this the way power BI works?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Similarly is there a way to pull a "Any" type Date paramter into slicer/visual and make the dax calculation and visuals react based on single date provided as input instead of choosing edit queries -&amp;gt; edit paramter?&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>Sat, 08 May 2021 12:22:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-X-Axis-Chart-based-on-Parameter/m-p/1831322#M38943</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-08T12:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic X-Axis Chart based on Parameter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-X-Axis-Chart-based-on-Parameter/m-p/1831438#M38950</link>
      <description>&lt;P&gt;You can't use DATESBETEEN as a value for a measure (or a calculated column) since measures return only SCALARS, not tables. Only in one case are you authorized to assign a table to a measure value - when the table holds only one column and one row. In this case DAX turns the table into a value automatically. Also, I'd kindly suggest that you learn about time-intelligence in Power BI because I can see you're doing it incorrectly, which means sooner or later you'll have mistakes/bugs in your figures.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can start here:&amp;nbsp;&lt;A href="https://www.sqlbi.com/articles/time-intelligence-in-power-bi-desktop/" target="_blank"&gt;https://www.sqlbi.com/articles/time-intelligence-in-power-bi-desktop/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and then head over to:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/guidance/star-schema" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/guidance/star-schema&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please learn the philosophy of Power BI and how DAX works to avoid common mistakes.&lt;/P&gt;</description>
      <pubDate>Sat, 08 May 2021 16:13:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-X-Axis-Chart-based-on-Parameter/m-p/1831438#M38950</guid>
      <dc:creator>daxer-almighty</dc:creator>
      <dc:date>2021-05-08T16:13:09Z</dc:date>
    </item>
  </channel>
</rss>

