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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
gigchocolaty
New Member

Fiscal Year Calculation

I just started playing Power Bi around for a week and I've been struggled with calculating fiscal year and quarter. Hopefully you guys could share your techniques.

 

I have two tables (one for FY 14 and another for FY15). The fiscal year begins July 1 and ends June 30. My first column is year and the second column is month (starting July 2013 to June 2014 for FY14). I don't have date in my dataset because I only focus on monthly data collection. I am hoping to be able to filter graph by quarter and fiscal year. 

 

In addition to that issue, I have questions regarding data modeling.

1) Would I be able to filter data by fiscal year if I have two separate dataset?

2) Would it be better to create a new table for fiscal year and link to another dataset? I still don't know how to create the relationship. 

 

 

Thanks you for all your help!

Tana

1 ACCEPTED SOLUTION
v-qiuyu-msft
Community Support
Community Support

Hi @gigchocolaty,

 

From your description, there are two tables (FY14 and FY15), and you want to calculate fiscal year and quarter, then filter based on the fiscal year and quarter, right?

 

In your scenario, I would suggest you append the table FY14 with table FY15 in query Editor use Append Queries as New feature. Then create two calculated columns like below:

 

Fiscal Year = 
  CONCATENATE("FY",
                IF('Append1'[Month] <=6,
                       RIGHT('Append1'[Year],2),
                       VALUE(RIGHT('Append1'[Year],2)) +1
                     )
                                )

 

FiscalQuarterNumber = IF('Append1'[Month]<4,3,IF('Append1'[Month]<7,4,IF('Append1'[Month]<10,1,2)))                                                 

 

Then place the Fiscal Year and FiscalQuarterNumber into slicers to filter data. You can take a look at attached .pbix file.

 

1) Would I be able to filter data by fiscal year if I have two separate dataset?

 

As each table have specific fiscal year, if we doen't combine those two tables, we can't get a table to list all fiscal years for those two tables. I think the above way is more proper for you.

 

2) Would it be better to create a new table for fiscal year and link to another dataset? I still don't know how to create the relationship. 

 

I think the above way have answered this question. Regarding create relationships in Power BI, you an take a look at this article: Create and manage relationships in Power BI Desktop.

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-qiuyu-msft
Community Support
Community Support

Hi @gigchocolaty,

 

From your description, there are two tables (FY14 and FY15), and you want to calculate fiscal year and quarter, then filter based on the fiscal year and quarter, right?

 

In your scenario, I would suggest you append the table FY14 with table FY15 in query Editor use Append Queries as New feature. Then create two calculated columns like below:

 

Fiscal Year = 
  CONCATENATE("FY",
                IF('Append1'[Month] <=6,
                       RIGHT('Append1'[Year],2),
                       VALUE(RIGHT('Append1'[Year],2)) +1
                     )
                                )

 

FiscalQuarterNumber = IF('Append1'[Month]<4,3,IF('Append1'[Month]<7,4,IF('Append1'[Month]<10,1,2)))                                                 

 

Then place the Fiscal Year and FiscalQuarterNumber into slicers to filter data. You can take a look at attached .pbix file.

 

1) Would I be able to filter data by fiscal year if I have two separate dataset?

 

As each table have specific fiscal year, if we doen't combine those two tables, we can't get a table to list all fiscal years for those two tables. I think the above way is more proper for you.

 

2) Would it be better to create a new table for fiscal year and link to another dataset? I still don't know how to create the relationship. 

 

I think the above way have answered this question. Regarding create relationships in Power BI, you an take a look at this article: Create and manage relationships in Power BI Desktop.

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
gigchocolaty
New Member

I just started playing Power Bi around for a week and I've been struggled with calculating fiscal year and quarter. Hopefully you guys could share your techniques.

 

I have two tables (one for FY 14 and another for FY15). The fiscal year begins July 1 and ends June 30. My first column is year and the second column is month (starting July 2013 to June 2014 for FY14). I don't have date in my dataset because I only focus on monthly data collection. I am hoping to be able to filter graph by quarter and fiscal year. 

 

In addition to that issue, I have questions regarding data modeling.

1) Would I be able to filter data by fiscal year if I have two separate dataset?

2) Would it be better to create a new table for fiscal year and link to another dataset? I still don't know how to create the relationship. 

 

 

Thanks you for all your help!

Tana

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.