<?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 Max Funktion mit 2 Restriktionen in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Max-Funktion-mit-2-Restriktionen/m-p/2525887#M107121</link>
    <description>&lt;P&gt;Hallo zusammen,&lt;/P&gt;&lt;P&gt;ich möchte aus einer Tabelle pro Kunde den Max-Wert vom Datum und von der Mahnstufe anzeigen lassen.&lt;/P&gt;&lt;P&gt;Bekomme aber alle Einträge angezeigt. Dabei möchte ich nur jeweils 1 Zeile pro Belegnr.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Versucht habe ich folgendes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;Max("Reminder Level",1) as "Reminder Level",&lt;BR /&gt;"Posting Date",&lt;BR /&gt;Max(date("Document Date")) as "Document Date",&lt;BR /&gt;"Document Type",&lt;BR /&gt;"Document No_", // as "Fakten_V2.Document No_",&lt;BR /&gt;Num("Remaining Amount", '#.###,00'),&lt;BR /&gt;'022-' &amp;amp; "Customer No_" as Key_MandNrKDNr,&lt;BR /&gt;"Customer No_"&lt;BR /&gt;where year("Document Date")&amp;gt; '2024' and "Document Type" = '2'&lt;BR /&gt;&lt;BR /&gt;group by "Posting Date",&lt;BR /&gt;"Document Type",&lt;BR /&gt;"Document No_",&lt;BR /&gt;Num("Remaining Amount", '#.###,00'),&lt;BR /&gt;"Customer No_" ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Viele Grüße&lt;/P&gt;&lt;P&gt;Emre&lt;/P&gt;</description>
    <pubDate>Thu, 31 Jul 2025 14:20:05 GMT</pubDate>
    <dc:creator>Sahin</dc:creator>
    <dc:date>2025-07-31T14:20:05Z</dc:date>
    <item>
      <title>Max Funktion mit 2 Restriktionen</title>
      <link>https://community.qlik.com/t5/App-Development/Max-Funktion-mit-2-Restriktionen/m-p/2525887#M107121</link>
      <description>&lt;P&gt;Hallo zusammen,&lt;/P&gt;&lt;P&gt;ich möchte aus einer Tabelle pro Kunde den Max-Wert vom Datum und von der Mahnstufe anzeigen lassen.&lt;/P&gt;&lt;P&gt;Bekomme aber alle Einträge angezeigt. Dabei möchte ich nur jeweils 1 Zeile pro Belegnr.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Versucht habe ich folgendes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;Max("Reminder Level",1) as "Reminder Level",&lt;BR /&gt;"Posting Date",&lt;BR /&gt;Max(date("Document Date")) as "Document Date",&lt;BR /&gt;"Document Type",&lt;BR /&gt;"Document No_", // as "Fakten_V2.Document No_",&lt;BR /&gt;Num("Remaining Amount", '#.###,00'),&lt;BR /&gt;'022-' &amp;amp; "Customer No_" as Key_MandNrKDNr,&lt;BR /&gt;"Customer No_"&lt;BR /&gt;where year("Document Date")&amp;gt; '2024' and "Document Type" = '2'&lt;BR /&gt;&lt;BR /&gt;group by "Posting Date",&lt;BR /&gt;"Document Type",&lt;BR /&gt;"Document No_",&lt;BR /&gt;Num("Remaining Amount", '#.###,00'),&lt;BR /&gt;"Customer No_" ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Viele Grüße&lt;/P&gt;&lt;P&gt;Emre&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2025 14:20:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Max-Funktion-mit-2-Restriktionen/m-p/2525887#M107121</guid>
      <dc:creator>Sahin</dc:creator>
      <dc:date>2025-07-31T14:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Max Funktion mit 2 Restriktionen</title>
      <link>https://community.qlik.com/t5/App-Development/Max-Funktion-mit-2-Restriktionen/m-p/2525899#M107125</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;It looks like you are confusing the data layer and the presentation layer.&lt;/P&gt;&lt;P&gt;In the data layer, if you wanted to load one row per Document, then your LOAD statement's GROUP BY clause should only include the Document Number, and maybe the Customer and the Document Type, but no dates or amounts - those need to be aggregated with either Sum (for amounts) or Min/Max (for dates).&lt;/P&gt;&lt;P&gt;In the presentation layer, you can define your Dimensions and Measures in a Table any way you want. For example, if you define Document Number as a Dimension and use sum(Amount) and Max(Date) as two measures, you will see one line per Document, with aggregated measures.&lt;/P&gt;&lt;P&gt;Did I answer your questions, or did I miss something?&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;P.S. Join my &lt;A href="https://www.hpartner.at/qlik-expert-class-mit-oleg-troyansky-in-wien/anmeldung-qlik-expert-class-mit-oleg-troyansky/" target="_blank" rel="noopener"&gt;Qlik Expert Class&lt;/A&gt; in Vienna on September 22-24 to learn advanced Qlik methodologies.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2025 15:08:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Max-Funktion-mit-2-Restriktionen/m-p/2525899#M107125</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2025-07-31T15:08:08Z</dc:date>
    </item>
  </channel>
</rss>

