cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Axiomite
Resolver II
Resolver II

Show dates in current Financial Year (only) when comparing YOY

Hi there,
Need some help on visuals, I only want to display months in the current financial year up until the current month. I would like to see YOY but the max date must be the current month and the min the start of the financial year. I have a filter on months for financial year but stuck on cutting the visual off on the current month.

Please see below example and 

 

FYTDGraphScreenShot.jpg

 

Has anyone had a similar issue? 

Best Regards

1 ACCEPTED SOLUTION

Thanks @Calvin69 for the reply.

Ive managed to solve it by creating a Financial Year Month Number, sorting my date table's month column with Financial Year Month Number. 
I then create measures for previous Year -1 and before previous year -2, and obviously Current year.

So the graph then contains the following fields:
Axis is the sorted Month table
Values the measure for current, PY and PY2
I then filter the graph on my date using relative date to only show "is in this" year. 

This seems to work. If anyone is interested in a more detailed explanation I am happy to provide more details. 

 

Kind regards

View solution in original post

3 REPLIES 3
Calvin69
Helper III
Helper III

Morning @Axiomite ,

The only way I can think of getting around this is by playing around my date table "Assuming you are using one"

I have created the following date table and used it within my visuals and it kind of worked:

Date = 
ADDCOLUMNS (
CALENDAR (DATE(2019,1,1), TODAY()),
"DateAsInteger", FORMAT ( [Date], "YYYYMMDD" ),
"Year", YEAR ( [Date] ),
"Monthnumber", FORMAT ( [Date], "MM" ),
"YearMonthnumber", FORMAT ( [Date], "YYYY/MM" ),
"YearMonthShort", FORMAT ( [Date], "YYYY/mmm" ),
"MonthNameShort", FORMAT ( [Date], "mmm" ),
"MonthNameLong", FORMAT ( [Date], "mmmm" ),
"DayOfWeekNumber", WEEKDAY ( [Date] ),
"DayOfWeek", FORMAT ( [Date], "dddd" ),
"DayOfWeekShort", FORMAT ( [Date], "ddd" ),
"Quarter", "Q" & FORMAT ( [Date], "Q" ),
"YearQuarter", FORMAT ( [Date], "YYYY" ) & "/Q" & FORMAT ( [Date], "Q" ),
"TESDATE", FORMAT ( [Date], "dd/MM/YYYY")
)

Result:

Calvin69_0-1630292378621.png

 

Hope this helps

H

Thanks @Calvin69 for the reply.

Ive managed to solve it by creating a Financial Year Month Number, sorting my date table's month column with Financial Year Month Number. 
I then create measures for previous Year -1 and before previous year -2, and obviously Current year.

So the graph then contains the following fields:
Axis is the sorted Month table
Values the measure for current, PY and PY2
I then filter the graph on my date using relative date to only show "is in this" year. 

This seems to work. If anyone is interested in a more detailed explanation I am happy to provide more details. 

 

Kind regards

Cool @Axiomite ,

Please do mark this as resolved if you require no further help with it.

Kind regards

H

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors