Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello all,
I have been asked to adapt an existing report which was using calendar dates to one that uses our company's Financial Years and Financial Weeks.
We have a table which shows a column with the number of orders per calendar month, and another column with the number of orders from the same month for the previous year. For this, I used:
I have the following data Table A:
FY | FY WeekNum | Customer Number | Orders |
2023 | 1 | 104 | 18,026 |
2023 | 2 | 104 | 24,941 |
2023 | 3 | 104 | 19,161 |
2024 | 1 | 104 | 16,831 |
2024 | 2 | 104 | 22,954 |
2024 | 3 | 104 | 18,977 |
I need to have a table visual which shows the following:
FY | FY WeekNum | Customer Number | Order | Previous FY |
2024 | 1 | 104 | 16,831 | 18,026 |
2024 | 2 | 104 | 22,954 | 24,941 |
2024 | 3 | 104 | 18,977 | 19,161 |
How can I achieve this please? Any help really appreciated.
Many thanks,
Alison
Solved! Go to Solution.
Thanks so much for the clear explanation, much appreciated! 🙂
Hi @AliPoTD ,
If i understood well, please try the bellow DAX measure:
Orders Previous FY =
VAR CurrentFY = MAX('Table A'[FY])
VAR CurrentWeekNum = MAX('Table A'[FY WeekNum])
VAR PreviousFY = CurrentFY - 1
RETURN
CALCULATE(
SUM('Table A'[Orders]),
'Table A'[FY] = PreviousFY,
'Table A'[FY WeekNum] = CurrentWeekNum
)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
145 | |
87 | |
66 | |
52 | |
45 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |