title: How to write dynamic header in DAX for Power BI report
body: <p>I have two slicers and report header should display data based on selected values in a slicer. 
  I was able to write an expression for single value selected, but is any way to write it for multiple values?</p>
  
  <pre><code>Header = 
      var selectyear =  SELECTEDVALUE(dim_Date[Year]) 
      var refreshdate = VALUES(fact_Premium[RefreshDate])
      var datetype = VALUES('Date Type Slicer'[Date Type])
      return "Report Period: " &amp; selectyear &amp; " As Of: " &amp; refreshdate &amp; " PST by " &amp; datetype
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/QIzws.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QIzws.png" alt="enter image description here"></a></p>
  
  <hr>
  
  <p>For multiple values, if more than 1 year selected, let's say 2016, it should be:</p>
  
  <p><strong>"Report Period 2016 - 2018 As Of 6/4/2018 10:09:36 PST by Accounting Date"</strong></p>
  
  <p>How would I modify the expression?</p>
  
  <p>Thank you </p>