<?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: A few fact tables in one model, the model is mostly based on dates. How do I show a count of rows in one table by month for date A and date B? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/A-few-fact-tables-in-one-model-the-model-is-mostly-based-on/m-p/2083199#M88798</link>
    <description>&lt;P&gt;Concatenating fact-tables to develop a data-model in the direction of a star-scheme is the official recommended way to build a working, simple &amp;amp; easy to create and use and performant data-model.&lt;/P&gt;
&lt;P&gt;In your case it seems to be a matter of a few minutes to build it - and then you could start to check the data and playing with various kinds of views and maybe adjusting the data-model to more advanced calendars by including flags, offset-values, continuous running fields and similar stuff and/or adding as-of-tables.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2023 10:33:47 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2023-06-13T10:33:47Z</dc:date>
    <item>
      <title>A few fact tables in one model, the model is mostly based on dates. How do I show a count of rows in one table by month for date A and date B?</title>
      <link>https://community.qlik.com/t5/App-Development/A-few-fact-tables-in-one-model-the-model-is-mostly-based-on/m-p/2083051#M88788</link>
      <description>&lt;P&gt;I have this model that's based on a system. The system contains no values but rather the complexity is in terms of the amount of dates everywhere. One table can contain 5 relevant dates and depending on the criteria another one would be used. Currently it's built in Power BI where I use inactive relationships with USERELATIONSHIP() in CALCULATE().&lt;/P&gt;
&lt;P&gt;The model itself is also a bit funny, there's two fact tables that usually aren't related but sometimes they are. Dimensions are also many to one to the fact. Conclusion, this is a pretty backwards system and breaks most best practices. Can't really do anything about is as that's how the external system is built.&lt;/P&gt;
&lt;P&gt;My problem that I'm currently struggling with is how to show two counts in one chart based on different dates.&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;Date A&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;Date B&lt;/TD&gt;
&lt;TD width="50%" height="25px"&gt;Value&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;1/Jan/2023&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;1/Feb/2023&lt;/TD&gt;
&lt;TD width="50%" height="25px"&gt;Hello&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;1/Jan/2023&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;1/Feb/2023&lt;/TD&gt;
&lt;TD width="50%" height="25px"&gt;World&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I create a chart where the Jan 2023 bar has a count of 2 and Feb 2023 bar has a count of 2?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only solution I've thought of is to concatenate the table for each value and create a 'Type of Date' column, but since there's 5 dates this seems pretty inefficient. The model doesn't contain that many rows, at most 5,000 per table.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 06:16:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/A-few-fact-tables-in-one-model-the-model-is-mostly-based-on/m-p/2083051#M88788</guid>
      <dc:creator>ThePewSpecialist</dc:creator>
      <dc:date>2023-06-13T06:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: A few fact tables in one model, the model is mostly based on dates. How do I show a count of rows in one table by month for date A and date B?</title>
      <link>https://community.qlik.com/t5/App-Development/A-few-fact-tables-in-one-model-the-model-is-mostly-based-on/m-p/2083199#M88798</link>
      <description>&lt;P&gt;Concatenating fact-tables to develop a data-model in the direction of a star-scheme is the official recommended way to build a working, simple &amp;amp; easy to create and use and performant data-model.&lt;/P&gt;
&lt;P&gt;In your case it seems to be a matter of a few minutes to build it - and then you could start to check the data and playing with various kinds of views and maybe adjusting the data-model to more advanced calendars by including flags, offset-values, continuous running fields and similar stuff and/or adding as-of-tables.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 10:33:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/A-few-fact-tables-in-one-model-the-model-is-mostly-based-on/m-p/2083199#M88798</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-06-13T10:33:47Z</dc:date>
    </item>
  </channel>
</rss>

