Forum Discussion

cgallegos's avatar
cgallegos
Regular Visitor
4 years ago
Solved

Dynamic Column Headings - Dates Over Time

Hi - I am wanting to have column headings that change as my dashboard is refreshed or updated.

 

For example,  I'd like the below "current week" heading to say "Jan 14-20" as the values in that column are calculated for that date range. Is there a way to do this?

 

Thank you,

 

 

  • lbendlin's avatar
    lbendlin
    4 years ago

    I initially implemented this as a DAX calculated column but then realized this would not work as it doesn't sort the result correctly. I reverted back to the standard method of supplying an external calendar table instead.  See attached for both options.

9 Replies

  • If by "dynamic"  you mean "recalculated during every import mode dataset refresh"  then yes.  Otherwise please provide more details, some sample data would be nice too.

    • cgallegos's avatar
      cgallegos
      Regular Visitor

      Essentially, I'd like to see week over week # of Hired Employees. The weeks runFriday-Thursday, though. 
      For example, if my raw data looks like something like this:

       

      HiresRegionEffective Date of HireDashboard Refresh Date
      1Consumer Ret1/14/20221/31/2022
      1Consumer Ret1/14/20221/31/2022
      1Consumer Ret1/14/20221/31/2022
      1Consumer Ret1/14/20221/31/2022
      1Consumer Ret1/14/20221/31/2022
      1Consumer Ret1/20/20221/31/2022
      1Consumer Ret1/21/20221/31/2022
      1Consumer Ret1/21/20221/31/2022
      1Consumer Ret1/27/20221/31/2022

       

      And I'd like it summarized like this

       

       Hires
      RegionJan 14-20Jan 21-27YTD
      Consumer Ret639

       

       

      • lbendlin's avatar
        lbendlin
        Super User

        What would be the expected column header for the next week?  "Jan 28-Feb 3" ?  You may be running out of screen real estate fast.