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):
And I will be setting up my data matrix as follows, barring any advice given in regarding this endeavor:
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
add a comment |
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):
And I will be setting up my data matrix as follows, barring any advice given in regarding this endeavor:
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
add a comment |
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):
And I will be setting up my data matrix as follows, barring any advice given in regarding this endeavor:
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
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):
And I will be setting up my data matrix as follows, barring any advice given in regarding this endeavor:
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
calendar powerbi dax
edited Nov 8 at 22:48
asked Nov 8 at 22:17
Woohyun Hwang
13
13
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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