- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Parallelperiod issue
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

The dates argument can be any of the following:
- A reference to a date/time column. Only in this case, a context transition applies because the <Dates> column reference is replaced by
- CALCULATETABLE ( DISTINCT ( <Dates> ) )
- A table expression that returns a single column of date/time values.
- A Boolean expression that defines a single-column table of date/time values.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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...
Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!: Power BI Cookbook Third Edition (Color)
DAX is easy, CALCULATE makes DAX hard...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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/

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
Anonymous
| 01-20-2020 12:54 AM | ||
Anonymous
| 09-08-2017 03:53 PM | ||
07-09-2024 03:24 AM | |||
Anonymous
| 09-20-2019 02:20 PM | ||
11-04-2024 06:37 PM |
User | Count |
---|---|
132 | |
105 | |
86 | |
55 | |
46 |