Displaying Last Year (Fiscal) Data based on Current Year Date Filter











up vote
0
down vote

favorite












I want to state in advance that I am almost entirely new to Power BI, DAX and associated languages.



I have created a date calendar which possesses, among other things the following columns:



DATE, YEAR_WEEK(Fiscal), ly_DATE(Fiscal) ly_YEAR_WEEK(Fiscal)


as defined by the following:



DATE: e.g. 01/25/2014. The granularity of the dates is one day. In this case, this is the 27th day of the fiscal year 2014, which is also given a column with data.



YEAR_WEEK(Fiscal): e.g. 2014W04, a value given to 7 sequential dates which defines the fiscal year and corresponding week of said year.



ly_DATE(Fiscal): e.g. 1/26/2013; the corresponding (27th) fiscal date of the previous year, 2013.



ly_YEAR_WEEK(Fiscal): e.g. 2013W04, the corresponding fiscal last year and week of the given date, which is also defined by ly_DATE(Fiscal).



My data is set up as follows (example):



Data Table



And I will be setting up my data matrix as follows, barring any advice given in regarding this endeavor:



Data Matrix Set Up



Where the Calendar Dates have been linked to the Ending Date of the data table, and the Company Code and Company Name are for this purpose irrelevant.



What I want to do is, for any given sum of Amount in a specific week, to display to its immediate left (ideally without that small gap which is displayed every time different column values are displayed in a Power BI bar graph, so far as I am aware) the sum of data in the equivalent previous year fiscal week.



I am confident that this must be possible given how the data is set up (and indeed, is very simple to display in Excel) but as I am a beginner in Power BI I can't make heads or tails of it.










share|improve this question




























    up vote
    0
    down vote

    favorite












    I want to state in advance that I am almost entirely new to Power BI, DAX and associated languages.



    I have created a date calendar which possesses, among other things the following columns:



    DATE, YEAR_WEEK(Fiscal), ly_DATE(Fiscal) ly_YEAR_WEEK(Fiscal)


    as defined by the following:



    DATE: e.g. 01/25/2014. The granularity of the dates is one day. In this case, this is the 27th day of the fiscal year 2014, which is also given a column with data.



    YEAR_WEEK(Fiscal): e.g. 2014W04, a value given to 7 sequential dates which defines the fiscal year and corresponding week of said year.



    ly_DATE(Fiscal): e.g. 1/26/2013; the corresponding (27th) fiscal date of the previous year, 2013.



    ly_YEAR_WEEK(Fiscal): e.g. 2013W04, the corresponding fiscal last year and week of the given date, which is also defined by ly_DATE(Fiscal).



    My data is set up as follows (example):



    Data Table



    And I will be setting up my data matrix as follows, barring any advice given in regarding this endeavor:



    Data Matrix Set Up



    Where the Calendar Dates have been linked to the Ending Date of the data table, and the Company Code and Company Name are for this purpose irrelevant.



    What I want to do is, for any given sum of Amount in a specific week, to display to its immediate left (ideally without that small gap which is displayed every time different column values are displayed in a Power BI bar graph, so far as I am aware) the sum of data in the equivalent previous year fiscal week.



    I am confident that this must be possible given how the data is set up (and indeed, is very simple to display in Excel) but as I am a beginner in Power BI I can't make heads or tails of it.










    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I want to state in advance that I am almost entirely new to Power BI, DAX and associated languages.



      I have created a date calendar which possesses, among other things the following columns:



      DATE, YEAR_WEEK(Fiscal), ly_DATE(Fiscal) ly_YEAR_WEEK(Fiscal)


      as defined by the following:



      DATE: e.g. 01/25/2014. The granularity of the dates is one day. In this case, this is the 27th day of the fiscal year 2014, which is also given a column with data.



      YEAR_WEEK(Fiscal): e.g. 2014W04, a value given to 7 sequential dates which defines the fiscal year and corresponding week of said year.



      ly_DATE(Fiscal): e.g. 1/26/2013; the corresponding (27th) fiscal date of the previous year, 2013.



      ly_YEAR_WEEK(Fiscal): e.g. 2013W04, the corresponding fiscal last year and week of the given date, which is also defined by ly_DATE(Fiscal).



      My data is set up as follows (example):



      Data Table



      And I will be setting up my data matrix as follows, barring any advice given in regarding this endeavor:



      Data Matrix Set Up



      Where the Calendar Dates have been linked to the Ending Date of the data table, and the Company Code and Company Name are for this purpose irrelevant.



      What I want to do is, for any given sum of Amount in a specific week, to display to its immediate left (ideally without that small gap which is displayed every time different column values are displayed in a Power BI bar graph, so far as I am aware) the sum of data in the equivalent previous year fiscal week.



      I am confident that this must be possible given how the data is set up (and indeed, is very simple to display in Excel) but as I am a beginner in Power BI I can't make heads or tails of it.










      share|improve this question















      I want to state in advance that I am almost entirely new to Power BI, DAX and associated languages.



      I have created a date calendar which possesses, among other things the following columns:



      DATE, YEAR_WEEK(Fiscal), ly_DATE(Fiscal) ly_YEAR_WEEK(Fiscal)


      as defined by the following:



      DATE: e.g. 01/25/2014. The granularity of the dates is one day. In this case, this is the 27th day of the fiscal year 2014, which is also given a column with data.



      YEAR_WEEK(Fiscal): e.g. 2014W04, a value given to 7 sequential dates which defines the fiscal year and corresponding week of said year.



      ly_DATE(Fiscal): e.g. 1/26/2013; the corresponding (27th) fiscal date of the previous year, 2013.



      ly_YEAR_WEEK(Fiscal): e.g. 2013W04, the corresponding fiscal last year and week of the given date, which is also defined by ly_DATE(Fiscal).



      My data is set up as follows (example):



      Data Table



      And I will be setting up my data matrix as follows, barring any advice given in regarding this endeavor:



      Data Matrix Set Up



      Where the Calendar Dates have been linked to the Ending Date of the data table, and the Company Code and Company Name are for this purpose irrelevant.



      What I want to do is, for any given sum of Amount in a specific week, to display to its immediate left (ideally without that small gap which is displayed every time different column values are displayed in a Power BI bar graph, so far as I am aware) the sum of data in the equivalent previous year fiscal week.



      I am confident that this must be possible given how the data is set up (and indeed, is very simple to display in Excel) but as I am a beginner in Power BI I can't make heads or tails of it.







      calendar powerbi dax






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 8 at 22:48

























      asked Nov 8 at 22:17









      Woohyun Hwang

      13




      13





























          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53216994%2fdisplaying-last-year-fiscal-data-based-on-current-year-date-filter%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53216994%2fdisplaying-last-year-fiscal-data-based-on-current-year-date-filter%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          這個網誌中的熱門文章

          Xamarin.form Move up view when keyboard appear

          Post-Redirect-Get with Spring WebFlux and Thymeleaf

          Anylogic : not able to use stopDelay()