Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowHello 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!
Check out the February 2025 Power BI update to learn about new features.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
102 | |
70 | |
68 | |
54 | |
41 |
User | Count |
---|---|
153 | |
83 | |
65 | |
62 | |
61 |