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,
once again, I have a task that I thought was easy and still can't get any further.
I have a slicer where I can enter any start and ending date.
Most of the time I want to know all sales data from fall to spring compared to the same period -1Year.
I used the measure: AJ = Sum(Salesdata[Sales]) and VJ = calculate([AJ];SAMEPERIODLASTYEAR(Salesdata[Date].[Date]))
I also tried Dateadd -1
Every time I got the same sales Amount AJ and VJ.
What am I doing wrong here?
Solved! Go to Solution.
Are your dates continuous? Also, use the date dimension instead of the sales table date.
You can also try
calculate([AJ];dateadd(Date.[Date],-1,year))
Are your dates continuous? Also, use the date dimension instead of the sales table date.
You can also try
calculate([AJ];dateadd(Date.[Date],-1,year))
Thanks, I had to add a time-table. It now works as I hoped it would!
all the best
herb
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 |
---|---|
111 | |
95 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |