<?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: How to show max value from slicer in pivot in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-max-value-from-slicer-in-pivot/m-p/4081454#M162021</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="400486" data-lia-user-login="GeorgWildmoser" class="lia-mention lia-mention-user"&gt;GeorgWildmoser&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i think you just need to add a check&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;MaxSliceDocumentDate = if(isblank(YourSumMeasure), blank(),&lt;/SPAN&gt;&lt;SPAN&gt;maxx&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;allselected&lt;/SPAN&gt;&lt;SPAN&gt;(TimeDoc), TimeDoc[Date Date]))&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;we could also think on why you are using maxx instead of just max&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if it works&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;bye&lt;/P&gt;</description>
    <pubDate>Mon, 05 Aug 2024 13:44:11 GMT</pubDate>
    <dc:creator>Gabry</dc:creator>
    <dc:date>2024-08-05T13:44:11Z</dc:date>
    <item>
      <title>How to show max value from slicer in pivot</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-max-value-from-slicer-in-pivot/m-p/4081218#M162009</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a pivot with documents and a slicer on the document date. The pivot contains the document and the respective document date.&lt;/P&gt;&lt;P&gt;My problem: The pivot should be extended by another column - with the maximum selected document date of the slicer. The result is a cross product.&lt;/P&gt;&lt;P&gt;What am I doing wrong? Thank you for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MyMeasure: MaxSliceDocumentDate =&amp;nbsp;&lt;SPAN&gt;maxx&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;allselected&lt;/SPAN&gt;&lt;SPAN&gt;(TimeDoc), TimeDoc[Date Date])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Starting Point:&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;Result after adding Measure:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Needed Result:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 12:20:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-max-value-from-slicer-in-pivot/m-p/4081218#M162009</guid>
      <dc:creator>GeorgWildmoser</dc:creator>
      <dc:date>2024-08-05T12:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to show max value from slicer in pivot</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-max-value-from-slicer-in-pivot/m-p/4081454#M162021</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="400486" data-lia-user-login="GeorgWildmoser" class="lia-mention lia-mention-user"&gt;GeorgWildmoser&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i think you just need to add a check&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;MaxSliceDocumentDate = if(isblank(YourSumMeasure), blank(),&lt;/SPAN&gt;&lt;SPAN&gt;maxx&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;allselected&lt;/SPAN&gt;&lt;SPAN&gt;(TimeDoc), TimeDoc[Date Date]))&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;we could also think on why you are using maxx instead of just max&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if it works&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;bye&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 13:44:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-max-value-from-slicer-in-pivot/m-p/4081454#M162021</guid>
      <dc:creator>Gabry</dc:creator>
      <dc:date>2024-08-05T13:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to show max value from slicer in pivot</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-max-value-from-slicer-in-pivot/m-p/4083498#M162088</link>
      <description>&lt;P&gt;Hi Gabry,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you very much for your support. Your solution works fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your suggested Measure (works great):&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MaxSliceDocumentDate =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;isblank&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Betrag]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;blank&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt;&lt;SPAN&gt;maxx&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TimeDoc&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;TimeDoc&lt;/SPAN&gt;&lt;SPAN&gt;[Date Date]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&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;Many thanks and have a nice day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Georg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 07:48:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-max-value-from-slicer-in-pivot/m-p/4083498#M162088</guid>
      <dc:creator>GeorgWildmoser</dc:creator>
      <dc:date>2024-08-06T07:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to show max value from slicer in pivot</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-max-value-from-slicer-in-pivot/m-p/4083706#M162090</link>
      <description>&lt;P&gt;Thanks for the reply from &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="470368" data-lia-user-login="Gabry" class="lia-mention lia-mention-user"&gt;Gabry&lt;/a&gt;&amp;nbsp;, please allow me to provide another insight:&amp;nbsp; &lt;BR /&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="400486" data-lia-user-login="GeorgWildmoser" class="lia-mention lia-mention-user"&gt;GeorgWildmoser&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as I know, Power BI automatically omits blank lines and treats blank fingers as zeros after a Sum operation.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Note: Blank lines are automatically omitted if "Show items with no data" is unchecked, but if this option is selected, blank values will also be shown.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;In your data there are [DimVo] columns, each row has a separate index, after using [MaxSliceDocumentDate] the expression will be applied to each row, so it will display the value on each row.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If you only want to show columns where [Sum] has a value, you can use the superuser's measure above to determine if [Sum] has a value, and if it does, then [MaxSliceDocumentDate] is displayed, and if it doesn't, then it's blank.&lt;/P&gt;
&lt;P&gt;You can also use Filters, select [Sum] -- is not blank&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 09:01:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-max-value-from-slicer-in-pivot/m-p/4083706#M162090</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-06T09:01:13Z</dc:date>
    </item>
  </channel>
</rss>

