cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rickylee
Helper III
Helper III

Barchart in financial year 18-19 display as 2 bars while it is one financial year. How to fix this?

Hello,

I try to display revenue in financial years i.e. April2018 to April2019. Everything looks good until I try to look at the yearly billing. It splits into 2018 and 2019. But they are in one financial year and should be combined together. 

 

At the moment, it looks like this but I want to combile them together.

 

Capture.PNG
Thanks,
Ricky

4 REPLIES 4
rickylee
Helper III
Helper III

@mnayar

My calendar date is CALENDARAUTO(3) already but it still shows normal years rather than financial years.

Thanks,
Ricky

mnayar
Solution Specialist
Solution Specialist

@rickylee I need to see your file to be of any help. I tested CALENDARAUTO(3) on my end and it seems to work fine for me. If you can't share your data, can you recreate the issue and post that in a power bi file.

mnayar
Solution Specialist
Solution Specialist

@rickylee another way would be to calculate a full fledged date table using something like this and add a custom calc for fiscal year in it.

 

Dates 5 =
  GENERATE (
    CALENDAR( DATE( YEAR( TODAY() ) - 2, MONTH( TODAY() ), DAY( TODAY()) ), TODAY()),
    VAR startOfWeek = 1 // Where 1 is Sunday and 7 is Saturday, thus a 3 would be Tuesday    
    VAR currentDay = [Date]
    VAR days = DAY( currentDay )
    VAR months = MONTH ( currentDay )
    VAR years = YEAR ( currentDay )
    VAR nowYear = YEAR( TODAY() )
    VAR nowMonth = MONTH( TODAY() )
    VAR dayIndex = DATEDIFF( currentDay, TODAY(), DAY) * -1
    VAR todayNum = WEEKDAY( TODAY() )
    VAR weekIndex = INT( ROUNDDOWN( ( dayIndex + -1 * IF( todayNum + startOfWeek <= 6, todayNum + startOfWeek, todayNum + startOfWeek - 7 )) / 7, 0 ) )
  RETURN ROW (
    "day", days,
    "month", months,
    "year", years,
    "day index", dayIndex,
    "week index", weekIndex,
    "month index", INT( (years - nowYear ) * 12 + months - nowMonth ),
    "year index", INT( years - nowYear )
  )
)

 

mnayar
Solution Specialist
Solution Specialist

Whats your x-axis. It seem you might have calendar year instead of fiscal year in the axis.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.