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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
anupampandey
Helper III
Helper III

relationship between calendar table and fact is not working

Hello Team,

 

I am new to Power BI. I got stuck at one place. I am having 3 fact tables and one Calender table. In fact tables calender month and year is there and in Calender table 2 columns FiscalMonth & FiscalYear are there. I have created a relationship between fact and calender table (on month & year). Now below are the issues:

 

  1. One blank year is appearing in FiscalYear slicer. 
  2. I have data only till 201701 but in chart it is taking the data from the previous fiscalyear months (201602 & 201603).
  3. If I select any fisical year data in other visuals goes off.

Capture.PNG

 

 

Capture1.PNG

 

 

 

 

 

 

 

 

 

I seriously don't know how to do it know. Is there a issue with relationship or what. Could you help me please? Your valuable help will save me.

 

Warm Regards

Anupam

1 ACCEPTED SOLUTION
v-caliao-msft
Microsoft Employee
Microsoft Employee

Hi @anupampandey,

 

In your date table, it's calendar year and month, in your fact table, it's fiscal year and fiscal month. You create a relationship between them, there will have Year and month dismatch issue.

 

In order to work around this issue, you need to have fiscal year and month in your date table. You can use the DAX below to create them.(suppose the fiscal year from July)

FiscalYear = IF('Date'[CalendarMonth]>6,'Date'[CalendarYear]+1,'Date'[CalendarYear])
FiscalMonth = IF('Date'[CalendarMonth]>6,'Date'[CalendarMonth]-6,'Date'[CalendarMonth]+6)
Capture.PNG

 

Regards,

Charlie Liao

View solution in original post

1 REPLY 1
v-caliao-msft
Microsoft Employee
Microsoft Employee

Hi @anupampandey,

 

In your date table, it's calendar year and month, in your fact table, it's fiscal year and fiscal month. You create a relationship between them, there will have Year and month dismatch issue.

 

In order to work around this issue, you need to have fiscal year and month in your date table. You can use the DAX below to create them.(suppose the fiscal year from July)

FiscalYear = IF('Date'[CalendarMonth]>6,'Date'[CalendarYear]+1,'Date'[CalendarYear])
FiscalMonth = IF('Date'[CalendarMonth]>6,'Date'[CalendarMonth]-6,'Date'[CalendarMonth]+6)
Capture.PNG

 

Regards,

Charlie Liao

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.