<?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 Interchangeable dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Interchangeable-dimensions/m-p/446141#M166433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in one report I have implemented, there is a date-time-stamp. Using the FLOOR and DATE functions I have in the script created a date-field and used that in a listbox in the GUI. Using the same method, I have also generated listboxes for the week, the month and the year - all the fields are created in the script, that way the statusbox displays the proper selected values.&lt;/P&gt;&lt;P&gt;Now I'd like to have all four dimensions - date, week, month, year - in my pivot-table, but if I put them side by side, it becomes too big - I'd like to make it dependent on the listbox that has been used - display the date when the date_listbox is used, display the week/ month (and necessarily the year) when either of those listboxes is used.&lt;/P&gt;&lt;P&gt;I guess I can use a formula to conditionally display one of several possible dimensions. One function coming to my mind that might do just that is CASE. The question is only, what command do I need to identify which object (which listbox) the user has activated?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Apr 2013 15:56:59 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2013-04-11T15:56:59Z</dc:date>
    <item>
      <title>Interchangeable dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Interchangeable-dimensions/m-p/446141#M166433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in one report I have implemented, there is a date-time-stamp. Using the FLOOR and DATE functions I have in the script created a date-field and used that in a listbox in the GUI. Using the same method, I have also generated listboxes for the week, the month and the year - all the fields are created in the script, that way the statusbox displays the proper selected values.&lt;/P&gt;&lt;P&gt;Now I'd like to have all four dimensions - date, week, month, year - in my pivot-table, but if I put them side by side, it becomes too big - I'd like to make it dependent on the listbox that has been used - display the date when the date_listbox is used, display the week/ month (and necessarily the year) when either of those listboxes is used.&lt;/P&gt;&lt;P&gt;I guess I can use a formula to conditionally display one of several possible dimensions. One function coming to my mind that might do just that is CASE. The question is only, what command do I need to identify which object (which listbox) the user has activated?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 15:56:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interchangeable-dimensions/m-p/446141#M166433</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-04-11T15:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Interchangeable dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Interchangeable-dimensions/m-p/446142#M166434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create a group on the Dimension tab of a charts properties window or on the Groups tab of the document properties window. You can add your dimensions to the group and then use the group as a dimension in your pivot table. You probably want to use a cycle group instead of a hierarchical group even though the date dimensions are hierarchical. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the getcurrentfield function to get the active field of the group to show/hide the relevant listbox. For example =if(getcurrentfield([MyGroup])='year',1,0) for the conditional display expression for the year listbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are more ways to skin this cat, but defining and using a group is the easiest solution imho.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Edit: using the group as the field for the listbox too is probably the way to go. It's a lot easier than showing/hiding listboxes.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 18:31:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interchangeable-dimensions/m-p/446142#M166434</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-04-11T18:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Interchangeable dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Interchangeable-dimensions/m-p/446143#M166435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot! I was thinking of a CASE or IF-clause, but a cyclical group will do just fine I guess. There's no point in hiding the listboxes as I want to make the diagram itself read-only - so I need to do this the other way round: Depending on which one of the listboxes was used, I'd like to display one or other of those dimensions.&lt;/P&gt;&lt;P&gt;I'll see if I can do that - a cyclical_group is a possible solution, but then the user would have to change two things: a) switch to another dimension within the group and b) select a value on the corresp. listbox.&lt;/P&gt;&lt;P&gt;Thanks anyway!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 08:35:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interchangeable-dimensions/m-p/446143#M166435</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-04-12T08:35:41Z</dc:date>
    </item>
  </channel>
</rss>

