Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I need help to use a M formula to calculate [Fiscal Qtr Offset], based on [Fiscal Mth]. Would really appreciate if you can help!
| Fiscal year | Fiscal Mth | Fiscal Qtr Offset |
| F2019 | 1 | -5 |
| 2 | -5 | |
| 3 | -5 | |
| 4 | -4 | |
| 5 | -4 | |
| 6 | -4 | |
| 7 | -3 | |
| 8 | -3 | |
| 9 | -3 | |
| 10 | -2 | |
| 11 | -2 | |
| 12 | -2 | |
| F2020 | 1 | -1 |
| 2 | -1 | |
| 3 | -1 | |
| 4 | 0 | |
| 5 | 0 | |
| 6 | 0 | |
| 7 | 1 | |
| 8 | 1 | |
| 9 | 1 | |
| 10 | 2 | |
| 11 | 2 | |
| 12 | 2 | |
| F2021 | 1 | 3 |
| 2 | 3 | |
| 3 | 3 | |
| 4 | 4 | |
| 5 | 4 | |
| 6 | 4 | |
| 7 | 5 | |
| 8 | 5 | |
| 9 | 5 | |
| 10 | 6 | |
| 11 | 6 | |
| 12 | 6 |
Solved! Go to Solution.
Thanks for the suggestion @v-frfei-msft
I have a much larger date table generated using PQ, so I was hoping to look for a PQ solution.
I was able to solve the issue - hope this will help others in the future:
= Number.RoundDown(((Date.Year([Date]) - Date.Year(CurrentDate)) * 12 + Date.Month([Date]) - Date.Month(CurrentDate)) / 3, 0)
Hi @Anonymous ,
We can achieve that by DAX.
offset = -6+CALCULATE(DISTINCTCOUNT('Table'[qtr]),FILTER(ALL('Table'),'Table'[Date]<=EARLIER('Table'[Date])))
Pbix as attached.
Thanks for the suggestion @v-frfei-msft
I have a much larger date table generated using PQ, so I was hoping to look for a PQ solution.
I was able to solve the issue - hope this will help others in the future:
= Number.RoundDown(((Date.Year([Date]) - Date.Year(CurrentDate)) * 12 + Date.Month([Date]) - Date.Month(CurrentDate)) / 3, 0)
@Anonymous
Need little more explanation on how you are generating Fiscal Qtr Offset? The Current quarter will always be -1?
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 4 |