March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
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:
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
Solved! Go to Solution.
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)
Regards,
Charlie Liao
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)
Regards,
Charlie Liao
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
90 | |
88 | |
64 | |
58 |
User | Count |
---|---|
202 | |
137 | |
106 | |
70 | |
68 |