Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |