Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. 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/
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
92 | |
86 | |
85 | |
66 | |
49 |
User | Count |
---|---|
140 | |
113 | |
106 | |
64 | |
60 |