<?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: Changing display text when multiple values are selected in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Changing-display-text-when-multiple-values-are-selected/m-p/737636#M2115</link>
    <description>&lt;P&gt;Thank you for the advice! I have read a bit about the star schema- I am not sure if it would work with the data I am using. It was pulled from a company ERP system and the data is essentially stacked on top of one another. I performed joins in SQL Server and transferred the file to Power BI as a single table, per my supervisor's request.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jul 2019 13:36:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-07-11T13:36:43Z</dc:date>
    <item>
      <title>Changing display text when multiple values are selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Changing-display-text-when-multiple-values-are-selected/m-p/737597#M2112</link>
      <description>&lt;P&gt;This measure makes it so I am able to select more than one month on my report.&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When no months are selected, however, it returns this.&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;Is it possible to make the card display "All Months?"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would greatly appreciate any advice.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 13:10:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Changing-display-text-when-multiple-values-are-selected/m-p/737597#M2112</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-11T13:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Changing display text when multiple values are selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Changing-display-text-when-multiple-values-are-selected/m-p/737616#M2113</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;This measure makes it so I am able to select more than one month on my report.&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When no months are selected, however, it returns this.&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;Is it possible to make the card display "All Months?"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would greatly appreciate any advice.&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Well, first of all, you should not use the automatically generated table of dates in Power BI (you should disable this option). Please do yourself a favour and create a proper date table and connect it to your fact table. If you want to have problems down the line and not know how to deal with them, you can use the automatic table but don't say I have not warned you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once you have the date table in the model connected to your fact table, you can do this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[Months Visible] =
var __numberOfVisibleMonths =
	DISTINCTCOUNT( Dates[MonthShortName] )
var __allMonthsSelected =
	__numberOfVisibleMonths = 12
var __monthsVisible =
	CONCATENATEX(
		SUMMARIZE(
			Dates,
			Dates[MonthShortName],
			Dates[MonthNumberInTheYear]
		),
		Dates[MonthShortName],
		", ",
		Dates[MonthNumberInTheYear]
	)
return
	if( __allMonthsSelected,
		"All Months",
		__monthsVisible
	)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your model does not look to be correctly structured. Please learn a bit about the correct design and the star schema. You'll save yourself grief and scratching your head.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 13:24:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Changing-display-text-when-multiple-values-are-selected/m-p/737616#M2113</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-11T13:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Changing display text when multiple values are selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Changing-display-text-when-multiple-values-are-selected/m-p/737636#M2115</link>
      <description>&lt;P&gt;Thank you for the advice! I have read a bit about the star schema- I am not sure if it would work with the data I am using. It was pulled from a company ERP system and the data is essentially stacked on top of one another. I performed joins in SQL Server and transferred the file to Power BI as a single table, per my supervisor's request.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 13:36:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Changing-display-text-when-multiple-values-are-selected/m-p/737636#M2115</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-11T13:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Changing display text when multiple values are selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Changing-display-text-when-multiple-values-are-selected/m-p/737638#M2116</link>
      <description>&lt;P&gt;Whoever your supervisor is... he's got little idea about proper dimensional design :)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You want to know better? Go to &lt;A href="http://www.sqlbi.com" target="_blank"&gt;www.sqlbi.com&lt;/A&gt; and read all you can read in there... Find the right articles on proper design within Power BI. Tell your supervisor as well &lt;STRONG&gt;to do the same&lt;/STRONG&gt; since he has no idea what he says to you and what problems you'll have down the line with a single table design.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 13:40:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Changing-display-text-when-multiple-values-are-selected/m-p/737638#M2116</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-11T13:40:28Z</dc:date>
    </item>
  </channel>
</rss>

