Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
I need to achieve a FULL Year measure for Last Year.
To achieve that, I have to… Ignore the Month and Date filters, and somehow pick the ‘Fiscal Year’ selected value and do a -1 to it.
My filters:
For Full Year what I have is:
Sales Full Year:=
CALCULATE
([Sales] , ALL('Date'[FY & Month], 'Date'[Week Offset],'Date'[Date]))
This works fine!
But for Full Year Last Year I am doing this:
Sales Full Year LY:=
CALCULATE ( [Sales Full Year] , PARALLELPERIOD ( 'Date'[Date] , -12 , MONTH ) )
But it doesn’t work! How can I achieve my goal?
Solved! Go to Solution.
Hi @Anonymous ,
According to your description, I create a sample.
Actually the PARALLELPERIOD can get the correct date period, but it can still be affected by the slicer, so it return blank.
Modify the formula to:
Sales Full Year LY =
CALCULATE (
[Sales Full Year],
PARALLELPERIOD ( 'Date'[Date], -12, MONTH ),
ALL ( 'Date' )
)
Get the correct result.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
According to your description, I create a sample.
Actually the PARALLELPERIOD can get the correct date period, but it can still be affected by the slicer, so it return blank.
Modify the formula to:
Sales Full Year LY =
CALCULATE (
[Sales Full Year],
PARALLELPERIOD ( 'Date'[Date], -12, MONTH ),
ALL ( 'Date' )
)
Get the correct result.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi:
Can this work? Example set up measures.
Sales = SUM(Sales[Sales Amt])
Sales Full Year = CALCULATE([Sales], FILTER(Dates, Dates[Year] = XXXX)) * you can choose the year, e.g. 2021
Sales Full Year LY:=
CALCULATE ( [Sales Full Year] , PARALLELPERIOD ( 'Date'[Date] , -1 , YEAR ) )
If you want to see a better over view, please see page 3 on the attached file. Here you can use the fields from the Date Table to also show you yearly sales. I hope this helps!
https://drive.google.com/file/d/1gHqCvtbQf3NeoFcVak_EF45cjH2kAiF8/view?usp=sharing
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 9 | |
| 8 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 23 | |
| 14 | |
| 10 | |
| 6 | |
| 5 |