Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

@Anonymous

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

Thanks,
Ricky

Anonymous
Not applicable

@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.

Anonymous
Not applicable

@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 )
  )
)

 

Anonymous
Not applicable

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.