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 moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hi all!
I'm trying to get the sales value of the previous previous month but i'm not been able to reach it using parallelperiod formula.
| SOP base | ID | Fecha creación |
| Actual | 0 | 31/1/2015 |
| SOP 01-Ene | 2 | 31/1/2016 |
| SOP 02-Feb | 4 | 29/2/2016 |
| SOP 03-Mar | 6 | 31/3/2016 |
| SOP 04-Abr | 8 | 30/4/2016 |
| SOP 05-May | 10 | 31/5/2016 |
| SOP 06-Jun | 12 | 30/6/2016 |
| SOP 07-Jul | 14 | 31/7/2016 |
| SOP 08-Aug | 16 | 31/8/2016 |
| SOP 09-Sep | 18 | 30/9/2016 |
| SOP 10-Oct | 20 | 31/10/2016 |
| SOP 11-Nov | 22 | 30/11/2016 |
| SOP 12-Dic | 24 | 31/12/2016 |
Now we are working in March, so I must get January value. The weird thing is that if I want to get February value, it works fine using "-1".
Thanks for your help
The dates argument can be any of the following:
This function takes the current set of dates in the column specified by Dates, shifts the first date and the last date the specified number of intervals, and then returns all contiguous dates between the two shifted dates. If the interval is a partial range of month, quarter, or year then any partial months in the result are also filled out to complete the entire interval.
The result table includes only dates that exist in the dates column.
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...
Create a date dimension and try trailing period
CALCULATE(Consolidado[TO]; dateadd(Date[Date];-2;MONTH))
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/
Check out the April 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 |
|---|---|
| 34 | |
| 31 | |
| 30 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 50 | |
| 30 | |
| 23 | |
| 23 |