The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
How do I create a DAX measure to calculate Full Year Total for the same fiscal year of a month & year in a visual (row context)?
A line & clustered column chart will show monthly totals in columns, with the Full Year total essentially a flat horzontal line.
Users can filter Fiscal Year from and Fiscal Year to. The following table illustrates FY Sales expected, based on fiscal years 2022-23 to 2023-24:
Month & Year | Sales | FY Sales | Fiscal Year (Not in visual. Is a column in Date table) |
Apr'22 | 1 | 12 | 2022-23 |
May'22 | 1 | 12 | 2022-23 |
Jun'22 | 1 | 12 | 2022-23 |
Jul'22 | 1 | 12 | 2022-23 |
Aug'22 | 1 | 12 | 2022-23 |
Sep'22 | 1 | 12 | 2022-23 |
Oct'22 | 1 | 12 | 2022-23 |
Nov'22 | 1 | 12 | 2022-23 |
Dec'22 | 1 | 12 | 2022-23 |
Jan'23 | 1 | 12 | 2022-23 |
Feb'23 | 1 | 12 | 2022-23 |
Mar'23 | 1 | 12 | 2022-23 |
Apr'23 | 2 | 24 | 2023-24 |
May'23 | 2 | 24 | 2023-24 |
Jun'23 | 2 | 24 | 2023-24 |
Jul'23 | 2 | 24 | 2023-24 |
Aug'23 | 2 | 24 | 2023-24 |
Sep'23 | 2 | 24 | 2023-24 |
Oct'23 | 2 | 24 | 2023-24 |
Nov'23 | 2 | 24 | 2023-24 |
Dec'23 | 2 | 24 | 2023-24 |
Jan'24 | 2 | 24 | 2023-24 |
Feb'24 | 2 | 24 | 2023-24 |
Mar'24 | 2 | 24 | 2023-24 |
I have tried the following DAX however this provides a cumulative total. I cannot figure out how to sum total for the Fiscal Year:
Thanks for any help.
@Tooley You may find this helpful - https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000
Also, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TIT...
User | Count |
---|---|
15 | |
11 | |
8 | |
8 | |
7 |
User | Count |
---|---|
21 | |
20 | |
12 | |
11 | |
7 |