{"id":2735,"date":"2019-05-03T13:47:52","date_gmt":"2019-05-03T11:47:52","guid":{"rendered":"https:\/\/thebipower.fr\/?p=2735"},"modified":"2020-12-16T13:49:07","modified_gmt":"2020-12-16T12:49:07","slug":"5-add-your-filtered-date-range-in-the-tooltip","status":"publish","type":"post","link":"https:\/\/thebipower.fr\/index.php\/2019\/05\/03\/5-add-your-filtered-date-range-in-the-tooltip\/","title":{"rendered":"5. Add your filtered date range in the tooltip"},"content":{"rendered":"\n<p>Don&#8217;t forget to add your filtered date range in the tooltip. This is one of the most important filter to display.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How to add your filtered date range in the tooltip<\/h3>\n\n\n\n<ul><li>Edit the &#8216;Selected filters&#8217; measure and add a new variable (Filtered_date)<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>Selected filters = \nVAR CR_LF = \"\n    \"   \/\/ This is a simple carriage return\nVAR Filtered_date = \"- Orders dates from \" &amp; FORMAT(MIN(Orders&#91;OrderDate]) ; \"dd\/mm\/yyyy\") &amp; \" to \" &amp; FORMAT(MAX(Orders&#91;OrderDate]) ; \"dd\/mm\/yyyy\") &amp; CR_LF \nVAR Company = IF(ISFILTERED(Customers&#91;CompanyName]) ; \n                \"Company = \" &amp; CONCATENATEX(ALLSELECTED(Customers&#91;CompanyName]) ; Customers&#91;CompanyName] ; \" , \") &amp; CR_LF ; \"\")\nVAR Category = IF(ISFILTERED(Categories&#91;CategoryName]) ; \n                \"Category = \" &amp; CONCATENATEX(ALLSELECTED(Categories&#91;CategoryName]) ; Categories&#91;CategoryName] ; \" , \") &amp; CR_LF ; \"\")\nVAR Product = IF(ISFILTERED(Products&#91;ProductName]) ; \n                \"Product = \" &amp; CONCATENATEX(ALLSELECTED(Products&#91;ProductName]) ; Products&#91;ProductName] ; \" , \") &amp; CR_LF ; \"\")\n\nRETURN  Filtered_date &amp; Company &amp; Category &amp; Product <\/code><\/pre>\n\n\n\n<p>You may adapt the date format to your needs.<\/p>\n\n\n\n<p>From now on, the date range filter will appear in any page you desire.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Tips<\/h3>\n\n\n\n<p>You may even create a dedicated measure for the date range filter and display it in all your pages or in the title of some visuals.<\/p>\n\n\n\n<p>Here is the pbix file of the demo :   <a href=\"https:\/\/github.com\/didierterrien\/Power-BI-assistant\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"download demo 'Report filters.pbix' (opens in a new tab)\">download demo &#8216;Report filters.pbix&#8217;<\/a><\/p>\n\n\n\n<p>This post is a part of a series :   <a href=\"https:\/\/thebipower.fr\/index.php\/category\/power-bi-desktop\/report-filters\/\">see the series<\/a><\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n\t\t\t<div class=\"wp-block-uagb-post-carousel uagb-post-grid  uagb-post__image-position-top uagb-post__image-enabled uagb-block-8f36f7cf     uagb-post__arrow-outside uagb-slick-carousel uagb-post__items uagb-post__columns-3 is-carousel uagb-post__columns-tablet-2 uagb-post__columns-mobile-1\" data-total=\"1\" style=\"\">\n\n\t\t\t\t\t\t\t\t\t\t\t\t<article class=\"uagb-post__inner-wrap\">\t\t\t\t\t\t\t\t<div class='uagb-post__image'>\n\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/thebipower.fr\/index.php\/2019\/02\/04\/4-add-a-tooltip-to-display-applied-filters\/\" target=\"_self\" rel=\"bookmark noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" width=\"627\" height=\"290\" src=\"https:\/\/thebipower.fr\/wp-content\/uploads\/2019\/02\/Display-filters-in-tooltip.png\" class=\"attachment-large size-large\" alt=\"tooltip to display applied filters\" srcset=\"https:\/\/thebipower.fr\/wp-content\/uploads\/2019\/02\/Display-filters-in-tooltip.png 627w, https:\/\/thebipower.fr\/wp-content\/uploads\/2019\/02\/Display-filters-in-tooltip-300x139.png 300w\" sizes=\"(max-width: 627px) 100vw, 627px\" \/>\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<h4 class=\"uagb-post__title uagb-post__text\">\n\t\t\t\t<a href=\"https:\/\/thebipower.fr\/index.php\/2019\/02\/04\/4-add-a-tooltip-to-display-applied-filters\/\" target=\"_self\" rel=\"bookmark noopener noreferrer\">4. Add a tooltip to display applied filters<\/a>\n\t\t\t<\/h4>\n\t\t\t\t\t\t<div class='uagb-post__text uagb-post-grid-byline'>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class='uagb-post__text uagb-post__excerpt'>\n\t\t\t\t\t<p>Once you know your report is filtered having a look at the green light, you&#8230;\t\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"uagb-post__text uagb-post__cta wp-block-button\">\n\t\t\t\t<a class=\"wp-block-button__link uagb-text-link\" href=\"https:\/\/thebipower.fr\/index.php\/2019\/02\/04\/4-add-a-tooltip-to-display-applied-filters\/\" target=\"_self\" rel=\"bookmark noopener noreferrer\">Read More<\/a>\n\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t<\/article>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<article class=\"uagb-post__inner-wrap\">\t\t\t\t\t\t\t\t<div class='uagb-post__image'>\n\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/thebipower.fr\/index.php\/2019\/02\/03\/3-display-filters-applied-to-data\/\" target=\"_self\" rel=\"bookmark noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" width=\"456\" height=\"294\" src=\"https:\/\/thebipower.fr\/wp-content\/uploads\/2019\/02\/Display-filters-applied-to-data.png\" class=\"attachment-large size-large\" alt=\"Display filters applied to data\" srcset=\"https:\/\/thebipower.fr\/wp-content\/uploads\/2019\/02\/Display-filters-applied-to-data.png 456w, https:\/\/thebipower.fr\/wp-content\/uploads\/2019\/02\/Display-filters-applied-to-data-300x193.png 300w\" sizes=\"(max-width: 456px) 100vw, 456px\" \/>\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<h4 class=\"uagb-post__title uagb-post__text\">\n\t\t\t\t<a href=\"https:\/\/thebipower.fr\/index.php\/2019\/02\/03\/3-display-filters-applied-to-data\/\" target=\"_self\" rel=\"bookmark noopener noreferrer\">3. Display filters applied to data<\/a>\n\t\t\t<\/h4>\n\t\t\t\t\t\t<div class='uagb-post__text uagb-post-grid-byline'>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class='uagb-post__text uagb-post__excerpt'>\n\t\t\t\t\t<p>To understand properly our data, the very first thing we need to do is to&#8230;\t\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"uagb-post__text uagb-post__cta wp-block-button\">\n\t\t\t\t<a class=\"wp-block-button__link uagb-text-link\" href=\"https:\/\/thebipower.fr\/index.php\/2019\/02\/03\/3-display-filters-applied-to-data\/\" target=\"_self\" rel=\"bookmark noopener noreferrer\">Read More<\/a>\n\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t<\/article>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<article class=\"uagb-post__inner-wrap\">\t\t\t\t\t\t\t\t<div class='uagb-post__image'>\n\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/thebipower.fr\/index.php\/2019\/02\/02\/2-display-a-light-when-data-is-filtered\/\" target=\"_self\" rel=\"bookmark noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"572\" src=\"https:\/\/thebipower.fr\/wp-content\/uploads\/2019\/02\/Light-is-green-1024x572.png\" class=\"attachment-large size-large\" alt=\"Display a light when data is filtered\" srcset=\"https:\/\/thebipower.fr\/wp-content\/uploads\/2019\/02\/Light-is-green-1024x572.png 1024w, https:\/\/thebipower.fr\/wp-content\/uploads\/2019\/02\/Light-is-green-300x167.png 300w, https:\/\/thebipower.fr\/wp-content\/uploads\/2019\/02\/Light-is-green-768x429.png 768w, https:\/\/thebipower.fr\/wp-content\/uploads\/2019\/02\/Light-is-green.png 1089w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<h4 class=\"uagb-post__title uagb-post__text\">\n\t\t\t\t<a href=\"https:\/\/thebipower.fr\/index.php\/2019\/02\/02\/2-display-a-light-when-data-is-filtered\/\" target=\"_self\" rel=\"bookmark noopener noreferrer\">2. Display a light when data is filtered<\/a>\n\t\t\t<\/h4>\n\t\t\t\t\t\t<div class='uagb-post__text uagb-post-grid-byline'>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class='uagb-post__text uagb-post__excerpt'>\n\t\t\t\t\t<p>When we use a report, it&#8217;s important to know if users applied filters. So, you&#8230;\t\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"uagb-post__text uagb-post__cta wp-block-button\">\n\t\t\t\t<a class=\"wp-block-button__link uagb-text-link\" href=\"https:\/\/thebipower.fr\/index.php\/2019\/02\/02\/2-display-a-light-when-data-is-filtered\/\" target=\"_self\" rel=\"bookmark noopener noreferrer\">Read More<\/a>\n\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t<\/article>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<article class=\"uagb-post__inner-wrap\">\t\t\t\t\t\t\t\t<div class='uagb-post__image'>\n\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/thebipower.fr\/index.php\/2019\/02\/01\/add-a-filter-page-to-your-report\/\" target=\"_self\" rel=\"bookmark noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"455\" src=\"https:\/\/thebipower.fr\/wp-content\/uploads\/2019\/02\/Filters-1-1-1024x455.png\" class=\"attachment-large size-large\" alt=\"Filters\" srcset=\"https:\/\/thebipower.fr\/wp-content\/uploads\/2019\/02\/Filters-1-1-1024x455.png 1024w, https:\/\/thebipower.fr\/wp-content\/uploads\/2019\/02\/Filters-1-1-300x133.png 300w, https:\/\/thebipower.fr\/wp-content\/uploads\/2019\/02\/Filters-1-1-768x342.png 768w, https:\/\/thebipower.fr\/wp-content\/uploads\/2019\/02\/Filters-1-1.png 1059w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<h4 class=\"uagb-post__title uagb-post__text\">\n\t\t\t\t<a href=\"https:\/\/thebipower.fr\/index.php\/2019\/02\/01\/add-a-filter-page-to-your-report\/\" target=\"_self\" rel=\"bookmark noopener noreferrer\">1. Add a filter page to your report<\/a>\n\t\t\t<\/h4>\n\t\t\t\t\t\t<div class='uagb-post__text uagb-post-grid-byline'>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class='uagb-post__text uagb-post__excerpt'>\n\t\t\t\t\t<p>There are different ways to filter data in Power BI reports. My favorite one is&#8230;\t\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"uagb-post__text uagb-post__cta wp-block-button\">\n\t\t\t\t<a class=\"wp-block-button__link uagb-text-link\" href=\"https:\/\/thebipower.fr\/index.php\/2019\/02\/01\/add-a-filter-page-to-your-report\/\" target=\"_self\" rel=\"bookmark noopener noreferrer\">Read More<\/a>\n\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t<\/article>\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t","protected":false},"excerpt":{"rendered":"<p>Don&#8217;t forget to add your filtered date range in the tooltip. This is one of the most important filter to display. How to add your filtered date range in the tooltip Edit the &#8216;Selected filters&#8217; measure and add a new variable (Filtered_date) You may adapt the date format to your needs. From now on, the&#8230;<\/p>\n","protected":false},"author":2,"featured_media":2802,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_uag_custom_page_level_css":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[4],"tags":[48,24,31],"uagb_featured_image_src":{"full":["https:\/\/thebipower.fr\/wp-content\/uploads\/2019\/05\/Add-your-filtered-date-range-in-the-tooltip.png",566,316,false],"thumbnail":["https:\/\/thebipower.fr\/wp-content\/uploads\/2019\/05\/Add-your-filtered-date-range-in-the-tooltip-150x150.png",150,150,true],"medium":["https:\/\/thebipower.fr\/wp-content\/uploads\/2019\/05\/Add-your-filtered-date-range-in-the-tooltip-300x167.png",300,167,true],"medium_large":["https:\/\/thebipower.fr\/wp-content\/uploads\/2019\/05\/Add-your-filtered-date-range-in-the-tooltip.png",566,316,false],"large":["https:\/\/thebipower.fr\/wp-content\/uploads\/2019\/05\/Add-your-filtered-date-range-in-the-tooltip.png",566,316,false],"1536x1536":["https:\/\/thebipower.fr\/wp-content\/uploads\/2019\/05\/Add-your-filtered-date-range-in-the-tooltip.png",566,316,false],"2048x2048":["https:\/\/thebipower.fr\/wp-content\/uploads\/2019\/05\/Add-your-filtered-date-range-in-the-tooltip.png",566,316,false],"mailpoet_newsletter_max":["https:\/\/thebipower.fr\/wp-content\/uploads\/2019\/05\/Add-your-filtered-date-range-in-the-tooltip.png",566,316,false]},"uagb_author_info":{"display_name":"Didier TERRIEN","author_link":"https:\/\/thebipower.fr\/index.php\/author\/masterpower\/"},"uagb_comment_info":0,"uagb_excerpt":"Don&#8217;t forget to add your filtered date range in the tooltip. This is one of the most important filter to display. How to add your filtered date range in the tooltip Edit the &#8216;Selected filters&#8217; measure and add a new variable (Filtered_date) You may adapt the date format to your needs. From now on, the...","_links":{"self":[{"href":"https:\/\/thebipower.fr\/index.php\/wp-json\/wp\/v2\/posts\/2735"}],"collection":[{"href":"https:\/\/thebipower.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thebipower.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thebipower.fr\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thebipower.fr\/index.php\/wp-json\/wp\/v2\/comments?post=2735"}],"version-history":[{"count":5,"href":"https:\/\/thebipower.fr\/index.php\/wp-json\/wp\/v2\/posts\/2735\/revisions"}],"predecessor-version":[{"id":3666,"href":"https:\/\/thebipower.fr\/index.php\/wp-json\/wp\/v2\/posts\/2735\/revisions\/3666"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thebipower.fr\/index.php\/wp-json\/wp\/v2\/media\/2802"}],"wp:attachment":[{"href":"https:\/\/thebipower.fr\/index.php\/wp-json\/wp\/v2\/media?parent=2735"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thebipower.fr\/index.php\/wp-json\/wp\/v2\/categories?post=2735"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thebipower.fr\/index.php\/wp-json\/wp\/v2\/tags?post=2735"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}