cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

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!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors