This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreGet Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.
This is my table structure
Solved! Go to Solution.
Hi @huzefa_53
Here is a sample file with the solution https://www.dropbox.com/t/VtLpsawmW0B3XWGE
Income PY - Tamer =
VAR PreviousYearPeriodStart = MIN ( period[ID] ) - 12
VAR PreviousYearPeriodEnd = MAX ( period[ID] ) - 12
VAR Result =
CALCULATE (
[Income],
REMOVEFILTERS ( period ),
period[ID] >= PreviousYearPeriodStart,
period[ID] <= PreviousYearPeriodEnd
)
RETURN
Result
Hi:
Are you able to get your prior year result using the following.
* Note - assumption your measure for income is correct.
Income YTD = TOTALYTD([Income], 'Calendar'[Date], "30-6") this gives current fiscal year (July-June)-stopping at June 30.
I see your reports is build on fiscal & monthly. You can also add a month index column to your Calendar table so you can sort your months easier.
First Calc Col in Calendar
MONTH No. = MONTH(Calendar[Date])
Next Calc Column in Calendar Table (used or sort order)
Fiscal Month No. = IF(Calendar[Month] <= 6, Calendar[month] + 6, Calendar[Month] -6)
Hope this helps.
PY Income = CALCULATE([Income YTD], DATEADD(Dates[Date], -1,YEAR))
Hi @huzefa_53
Here is a sample file with the solution https://www.dropbox.com/t/VtLpsawmW0B3XWGE
Income PY - Tamer =
VAR PreviousYearPeriodStart = MIN ( period[ID] ) - 12
VAR PreviousYearPeriodEnd = MAX ( period[ID] ) - 12
VAR Result =
CALCULATE (
[Income],
REMOVEFILTERS ( period ),
period[ID] >= PreviousYearPeriodStart,
period[ID] <= PreviousYearPeriodEnd
)
RETURN
Result
I am sharing the link of pbix file so you can look properly
What i want is that a Dax that break on fiscal period and i could get month wise sum and than sum of all months equivalent in order to compare current income and previous year income based on fiscal year we manage fiscal year details in different table
https://drive.google.com/file/d/1uomsgP_5zqqnVKxpxxcJosZ6lmXi4Vzz/view?usp=sharing
Hi, @huzefa_53
Your date is a bit complicated, I didn't finish reading it, but about calculating the value of the previous year, you can try this function.
Measure =
CALCULATE([Total Postings],'Acc'[account_type] ="Income", DATEADD('Date'[Date],-1,YEAR))
Use the DATEADD function to replace the description of the previous year in your calculation.
Please refer to this link.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @huzefa_53
Did you try slicing by "Month - Year" column instead of "Month Name" column? As the Month Name column contains all years therfore, last year will have no meaning
yes still problem not resolved
i have change sturucture as well
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |