{"id":99,"date":"2018-02-25T08:03:11","date_gmt":"2018-02-25T08:03:11","guid":{"rendered":"http:\/\/qlikwithfriends.com.temp.realssl.com\/?p=99"},"modified":"2018-11-25T08:06:10","modified_gmt":"2018-11-25T08:06:10","slug":"using-aggr-instead-of-if-for-complex-dimensions","status":"publish","type":"post","link":"https:\/\/qlikwithfriends.com\/index.php\/2018\/02\/25\/using-aggr-instead-of-if-for-complex-dimensions\/","title":{"rendered":"Using AGGR instead of IF for complex dimensions"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"99\" class=\"elementor elementor-99 elementor-bc-flex-widget\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-be82ecd elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"be82ecd\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-8813ca4\" data-id=\"8813ca4\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4fd40d5 elementor-widget elementor-widget-text-editor\" data-id=\"4fd40d5\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p style=\"margin: 0in 0in 0.0001pt; font-size: medium; font-family: Calibri, sans-serif; caret-color: #000000; color: #000000; font-style: normal; font-variant-caps: normal; text-indent: 0px;\"><span style=\"font-family: Calibri, sans-serif; font-size: medium; font-style: normal; font-variant-caps: normal; text-align: inherit;\">In this post, I\u2019ll focus on a quick tip that encourages the use of Aggr for complex dimensions.<\/span><\/p><p style=\"margin: 0in 0in 0.0001pt; font-size: medium; font-family: Calibri, sans-serif; caret-color: #000000; color: #000000; font-style: normal; font-variant-caps: normal; text-indent: 0px;\"><span style=\"font-family: Calibri, sans-serif; font-size: medium; font-style: normal; font-variant-caps: normal; text-align: inherit;\">\u00a0<\/span><\/p><p style=\"margin: 0in 0in 0.0001pt; font-size: medium; font-family: Calibri, sans-serif; caret-color: #000000; color: #000000; font-style: normal; font-variant-caps: normal; text-indent: 0px;\">What\u2019s a complex dimension? Most of the time, we\u2019ll construct the database for our app so that our users can simply drag or select a field for a dimension and use it\u2014that\u2019s a simple dimension. Sometimes, however, we\u2019ll need to use a formula for a dimension. This usually occurs when we need to apply filtering logic to the dimension, format the dimension (for example, a date format), or create a custom string for a dimension\u2014these are examples of complex dimensions, and depending upon the situation, they can get very complex.<\/p><p style=\"margin: 0in 0in 0.0001pt; font-size: medium; font-family: Calibri, sans-serif; caret-color: #000000; color: #000000; font-style: normal; font-variant-caps: normal; text-indent: 0px;\">\u00a0<\/p><p style=\"margin: 0in 0in 0.0001pt; font-size: medium; font-family: Calibri, sans-serif; caret-color: #000000; color: #000000; font-style: normal; font-variant-caps: normal; text-indent: 0px;\">When you select a simple dimension in a chart or table, Qlik Sense will show the selection you made in the filter bar. For example, I we selected the value \u201cUS\u201d for the dimension Region, we\u2019d see something like this\u2026<\/p><p style=\"margin: 0in 0in 0.0001pt; font-size: medium; font-family: Calibri, sans-serif; caret-color: #000000; color: #000000; font-style: normal; font-variant-caps: normal; text-indent: 0px;\">\u00a0<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-6f6bbee elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"6f6bbee\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3201129\" data-id=\"3201129\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-532baae elementor-widget elementor-widget-image\" data-id=\"532baae\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"186\" height=\"42\" src=\"https:\/\/qlikwithfriends.com\/wp-content\/uploads\/2018\/11\/Region-US.png\" class=\"attachment-large size-large wp-image-100\" alt=\"\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-0fc4a63 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"0fc4a63\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-22bcaf9\" data-id=\"22bcaf9\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-eccf61d elementor-widget elementor-widget-text-editor\" data-id=\"eccf61d\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p class=\"MsoNormal\" style=\"margin: 0in 0in 0.0001pt; font-size: medium; font-family: Calibri, sans-serif; caret-color: #000000; color: #000000; font-style: normal; font-variant-caps: normal; text-indent: 0px;\">But what about a complex dimension? When you use a formula as a dimension, Qlik Sense does a good job of figuring out how to determine what actual fields (dimensions) are being filtered, but in many situations, it can\u2019t. In those cases, instead of seeing one or more dimensions in the filter bar, you\u2019ll see a formula. While technically correct, this can be confusing, especially to end users.<\/p><p class=\"MsoNormal\" style=\"margin: 0in 0in 0.0001pt; font-size: medium; font-family: Calibri, sans-serif; caret-color: #000000; color: #000000; font-style: normal; font-variant-caps: normal; text-indent: 0px;\">\u00a0<\/p><p class=\"MsoNormal\" style=\"margin: 0in 0in 0.0001pt; font-size: medium; font-family: Calibri, sans-serif; caret-color: #000000; color: #000000; font-style: normal; font-variant-caps: normal; text-indent: 0px;\">Here\u2019s an example.<\/p><p class=\"MsoNormal\" style=\"margin: 0in 0in 0.0001pt; font-size: medium; font-family: Calibri, sans-serif; caret-color: #000000; color: #000000; font-style: normal; font-variant-caps: normal; text-indent: 0px;\">\u00a0<\/p><p><span style=\"caret-color: #000000; color: #000000; font-size: 12pt; font-style: normal; font-variant-caps: normal; font-family: Calibri, sans-serif;\">I made a simple table that displays information for film actors and actresses who have been nominated for academy awards. I\u2019m using a simple dimension \u201cDisplay Name\u201d for the table.<\/span><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-31bf5be elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"31bf5be\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e877976\" data-id=\"e877976\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b29b022 elementor-widget elementor-widget-image\" data-id=\"b29b022\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"867\" height=\"758\" src=\"https:\/\/qlikwithfriends.com\/wp-content\/uploads\/2018\/11\/Table_No-Filter.png\" class=\"attachment-large size-large wp-image-103\" alt=\"\" srcset=\"https:\/\/qlikwithfriends.com\/wp-content\/uploads\/2018\/11\/Table_No-Filter.png 867w, https:\/\/qlikwithfriends.com\/wp-content\/uploads\/2018\/11\/Table_No-Filter-300x262.png 300w, https:\/\/qlikwithfriends.com\/wp-content\/uploads\/2018\/11\/Table_No-Filter-768x671.png 768w, https:\/\/qlikwithfriends.com\/wp-content\/uploads\/2018\/11\/Table_No-Filter-229x200.png 229w\" sizes=\"auto, (max-width: 867px) 100vw, 867px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-49e2c59 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"49e2c59\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-30aebd3\" data-id=\"30aebd3\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-bb340be elementor-widget elementor-widget-text-editor\" data-id=\"bb340be\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p class=\"MsoNormal\" style=\"margin: 0in 0in 0.0001pt; font-size: medium; font-family: Calibri, sans-serif; caret-color: #000000; color: #000000; font-style: normal; font-variant-caps: normal; text-indent: 0px;\">I&#8217;ll select a group of names.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-7d0e14c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"7d0e14c\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-890d6d1\" data-id=\"890d6d1\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-54262f8 elementor-widget elementor-widget-image\" data-id=\"54262f8\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"752\" height=\"464\" src=\"https:\/\/qlikwithfriends.com\/wp-content\/uploads\/2018\/11\/Table_No-Filter-selecting.png\" class=\"attachment-large size-large wp-image-102\" alt=\"\" srcset=\"https:\/\/qlikwithfriends.com\/wp-content\/uploads\/2018\/11\/Table_No-Filter-selecting.png 752w, https:\/\/qlikwithfriends.com\/wp-content\/uploads\/2018\/11\/Table_No-Filter-selecting-300x185.png 300w, https:\/\/qlikwithfriends.com\/wp-content\/uploads\/2018\/11\/Table_No-Filter-selecting-324x200.png 324w\" sizes=\"auto, (max-width: 752px) 100vw, 752px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-01f65b5 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"01f65b5\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b1817b7\" data-id=\"b1817b7\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-01bbe3a elementor-widget elementor-widget-text-editor\" data-id=\"01bbe3a\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p><span style=\"caret-color: #000000; color: #000000; font-family: Calibri, sans-serif; font-size: medium; font-style: normal; font-variant-caps: normal;\">We\u2019ll see the dimension name and number of selections displayed in the filter bar at the top of the screen.<\/span><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-8e8ef0b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"8e8ef0b\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ff65daa\" data-id=\"ff65daa\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-8c85591 elementor-widget elementor-widget-image\" data-id=\"8c85591\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"188\" height=\"45\" src=\"https:\/\/qlikwithfriends.com\/wp-content\/uploads\/2018\/11\/Table_No-Filter-filter-bar.png\" class=\"attachment-large size-large wp-image-101\" alt=\"\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-217952d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"217952d\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2bba054\" data-id=\"2bba054\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-9aceabe elementor-widget elementor-widget-text-editor\" data-id=\"9aceabe\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p><span style=\"color: #000000; font-family: Calibri, sans-serif; font-size: medium;\"><span style=\"caret-color: #000000;\">Now let\u2019s look at an example of a more complex dimension. I want to change the \u201cName\u201d column to show formatted text\u00a0<\/span><\/span><span style=\"color: #000000; font-family: Calibri, sans-serif;\"><span style=\"caret-color: #000000;\">comprised<\/span><\/span><span style=\"color: #000000; font-family: Calibri, sans-serif; font-size: medium;\"><span style=\"caret-color: #000000;\">\u00a0of the Display Name and whether the person is an actor or actress. I\u2019ll change the dimension to use the formula below.<\/span><\/span><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-b40ebad elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"b40ebad\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-0060cf9\" data-id=\"0060cf9\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-a811694 elementor-widget elementor-widget-shortcode\" data-id=\"a811694\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-shortcode\">=[Display Name] & If(Gender = 'M', ' (actor)', If(Gender = 'F', ' (actress)'))<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-b6c2ba8 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"b6c2ba8\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d884fbd\" data-id=\"d884fbd\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b18ebcc elementor-widget elementor-widget-text-editor\" data-id=\"b18ebcc\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p class=\"MsoNormal\" style=\"margin: 0in 0in 0.0001pt; font-size: medium; font-family: Calibri, sans-serif; caret-color: #000000; color: #000000; font-style: normal; font-variant-caps: normal; text-indent: 0px;\">Here is the result.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2a2eb19 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2a2eb19\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-65278df\" data-id=\"65278df\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-0c4b0b6 elementor-widget elementor-widget-image\" data-id=\"0c4b0b6\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"928\" height=\"758\" src=\"https:\/\/qlikwithfriends.com\/wp-content\/uploads\/2018\/11\/Table_If.png\" class=\"attachment-large size-large wp-image-104\" alt=\"\" srcset=\"https:\/\/qlikwithfriends.com\/wp-content\/uploads\/2018\/11\/Table_If.png 928w, https:\/\/qlikwithfriends.com\/wp-content\/uploads\/2018\/11\/Table_If-300x245.png 300w, https:\/\/qlikwithfriends.com\/wp-content\/uploads\/2018\/11\/Table_If-768x627.png 768w, https:\/\/qlikwithfriends.com\/wp-content\/uploads\/2018\/11\/Table_If-245x200.png 245w\" sizes=\"auto, (max-width: 928px) 100vw, 928px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ed008ba elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ed008ba\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-847ffb7\" data-id=\"847ffb7\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-0ee367d elementor-widget elementor-widget-text-editor\" data-id=\"0ee367d\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p class=\"MsoNormal\" style=\"margin: 0in 0in 0.0001pt; font-size: medium; font-family: Calibri, sans-serif; caret-color: #000000; color: #000000; font-style: normal; font-variant-caps: normal; text-indent: 0px;\">Let\u2019s make the same selection that we did earlier.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-0152080 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"0152080\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-33f7c05\" data-id=\"33f7c05\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3a29002 elementor-widget elementor-widget-image\" data-id=\"3a29002\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"762\" height=\"445\" src=\"https:\/\/qlikwithfriends.com\/wp-content\/uploads\/2018\/11\/Table_If-selecting.png\" class=\"attachment-large size-large wp-image-105\" alt=\"\" srcset=\"https:\/\/qlikwithfriends.com\/wp-content\/uploads\/2018\/11\/Table_If-selecting.png 762w, https:\/\/qlikwithfriends.com\/wp-content\/uploads\/2018\/11\/Table_If-selecting-300x175.png 300w, https:\/\/qlikwithfriends.com\/wp-content\/uploads\/2018\/11\/Table_If-selecting-342x200.png 342w, https:\/\/qlikwithfriends.com\/wp-content\/uploads\/2018\/11\/Table_If-selecting-426x250.png 426w\" sizes=\"auto, (max-width: 762px) 100vw, 762px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-f1ea03e elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"f1ea03e\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-457322d\" data-id=\"457322d\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-0cd7389 elementor-widget elementor-widget-text-editor\" data-id=\"0cd7389\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p style=\"margin: 0in 0in 0.0001pt; font-size: medium; font-family: Calibri, sans-serif; caret-color: #000000; color: #000000; font-style: normal; font-variant-caps: normal; text-indent: 0px;\">Notice what has happened in the filter bar (below). Qlik Sense displays the formula we used instead of the dimension \u201cDisplay Name\u201d. If you hover over it, it will actually display the entire expression that was used.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-bdd63df elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"bdd63df\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-fdb9109\" data-id=\"fdb9109\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3712cfc elementor-widget elementor-widget-image\" data-id=\"3712cfc\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"184\" height=\"45\" src=\"https:\/\/qlikwithfriends.com\/wp-content\/uploads\/2018\/11\/Table-_If-filter-bar.png\" class=\"attachment-large size-large wp-image-106\" alt=\"\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-50ec416 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"50ec416\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5ca6ada\" data-id=\"5ca6ada\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-a3d5ded elementor-widget elementor-widget-text-editor\" data-id=\"a3d5ded\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p class=\"MsoNormal\" style=\"margin: 0in 0in 0.0001pt; font-size: medium; font-family: Calibri, sans-serif; caret-color: #000000; color: #000000; font-style: normal; font-variant-caps: normal; text-indent: 0px;\">We actually did select those Display Names and if the dimension appears in a Filter Pane object, it will correctly show this. But, the information shown in the filter bar at the top of the screen is confusing, because it doesn\u2019t really show this.<\/p><p class=\"MsoNormal\" style=\"margin: 0in 0in 0.0001pt; font-size: medium; font-family: Calibri, sans-serif; caret-color: #000000; color: #000000; font-style: normal; font-variant-caps: normal; text-indent: 0px;\">\u00a0<\/p><p class=\"MsoNormal\" style=\"margin: 0in 0in 0.0001pt; font-size: medium; font-family: Calibri, sans-serif; caret-color: #000000; color: #000000; font-style: normal; font-variant-caps: normal; text-indent: 0px;\">Fortunately, we have another option. Let\u2019s change the formula to use an AGGR function. The resulting expression will look like this.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-40f6f4f elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"40f6f4f\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-9aa7fb1\" data-id=\"9aa7fb1\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-d4a7c8b elementor-widget elementor-widget-shortcode\" data-id=\"d4a7c8b\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-shortcode\">=Aggr([Display Name] & If(Gender = 'M', ' (actor)', If(Gender = 'F', ' (actress)')), [Display Name])<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-283a9a3 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"283a9a3\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a1e1704\" data-id=\"a1e1704\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-970b5a8 elementor-widget elementor-widget-text-editor\" data-id=\"970b5a8\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p class=\"MsoNormal\" style=\"margin: 0in 0in 0.0001pt; font-size: medium; font-family: Calibri, sans-serif; caret-color: #000000; color: #000000; font-style: normal; font-variant-caps: normal; text-indent: 0px;\">This might look confusing at first, but all I\u2019ve done is use the same expression as the expression in the Aggr function and used the dimension as the grouping dimension in the Aggr. This produces the exact same set of dimension values and my table will look exactly the same.<\/p><p class=\"MsoNormal\" style=\"margin: 0in 0in 0.0001pt; font-size: medium; font-family: Calibri, sans-serif; caret-color: #000000; color: #000000; font-style: normal; font-variant-caps: normal; text-indent: 0px;\">\u00a0<\/p><p><span style=\"caret-color: #000000; color: #000000; font-size: 12pt; font-style: normal; font-variant-caps: normal; font-family: Calibri, sans-serif;\">If I make the same Name selection again the filter bar will now show the dimension name \u201cDisplay Name\u201d instead of the expression.<\/span><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-0ed6e67 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"0ed6e67\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-564cf8b\" data-id=\"564cf8b\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-79740ab elementor-widget elementor-widget-image\" data-id=\"79740ab\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"187\" height=\"41\" src=\"https:\/\/qlikwithfriends.com\/wp-content\/uploads\/2018\/11\/Table-_Aggr-filter-bar.png\" class=\"attachment-large size-large wp-image-108\" alt=\"\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-53ef926 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"53ef926\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-bccac39\" data-id=\"bccac39\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-82d0296 elementor-widget elementor-widget-text-editor\" data-id=\"82d0296\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p class=\"MsoNormal\" style=\"margin: 0in 0in 0.0001pt; font-size: medium; font-family: Calibri, sans-serif; caret-color: #000000; color: #000000; font-style: normal; font-variant-caps: normal; text-indent: 0px;\">This is\u00a0<u>exactly<\/u>what we want and will work in almost all cases, regardless of how complex my Aggr statement is. Using Aggr is a flexible way to ensure that your calculated dimension will correctly display in the filter bar.<\/p><p class=\"MsoNormal\" style=\"margin: 0in 0in 0.0001pt; font-size: medium; font-family: Calibri, sans-serif; caret-color: #000000; color: #000000; font-style: normal; font-variant-caps: normal; text-indent: 0px;\">\u00a0<\/p><p class=\"MsoNormal\" style=\"margin: 0in 0in 0.0001pt; font-size: medium; font-family: Calibri, sans-serif; caret-color: #000000; color: #000000; font-style: normal; font-variant-caps: normal; text-indent: 0px;\">If you\u2019d like to understand more about what you can do with Aggr, there are many examples on QlikCommunity and in the Qlik documentation.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>In this post, I\u2019ll focus on a quick tip that encourages the use of Aggr for complex dimensions. What\u2019s a complex dimension? Most of the time, we\u2019ll construct the database for our app so that our users can simply drag or select a field for a dimension and use it\u2014that\u2019s &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[6,8,7],"tags":[],"class_list":["post-99","post","type-post","status-publish","format-standard","hentry","category-qliksense","category-quick-tip","category-visualizations"],"_links":{"self":[{"href":"https:\/\/qlikwithfriends.com\/index.php\/wp-json\/wp\/v2\/posts\/99","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qlikwithfriends.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qlikwithfriends.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qlikwithfriends.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qlikwithfriends.com\/index.php\/wp-json\/wp\/v2\/comments?post=99"}],"version-history":[{"count":3,"href":"https:\/\/qlikwithfriends.com\/index.php\/wp-json\/wp\/v2\/posts\/99\/revisions"}],"predecessor-version":[{"id":111,"href":"https:\/\/qlikwithfriends.com\/index.php\/wp-json\/wp\/v2\/posts\/99\/revisions\/111"}],"wp:attachment":[{"href":"https:\/\/qlikwithfriends.com\/index.php\/wp-json\/wp\/v2\/media?parent=99"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qlikwithfriends.com\/index.php\/wp-json\/wp\/v2\/categories?post=99"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qlikwithfriends.com\/index.php\/wp-json\/wp\/v2\/tags?post=99"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}