Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi all,
I hope someone can help me. I know what the problem is, but I don't know how to solve it.
I have a situation where there are 13 periods in a year. The data that is imported is not on a daily basis, but imported on the last day of that period through an Excel file. So what I have for example is:
data on 26 January 2020
data on 24 January 2021
If I choose sameperiodlastyear or dateadd -1 year to compare it shows blanks. Obviously because it compares 24 January 2021 to 24 January 2020 (which has no data).
Is there a way to work around this?
Solved! Go to Solution.
@lekkerbek , I think you need 364 day behind year 28*13
example
Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-364,Day))
make sure you use date table
@lekkerbek , I think you need 364 day behind year 28*13
example
Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-364,Day))
make sure you use date table
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 38 | |
| 38 | |
| 28 | |
| 27 |
| User | Count |
|---|---|
| 124 | |
| 88 | |
| 73 | |
| 66 | |
| 65 |