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,
Building a report and slicing by year and month.
I want to compare the sales with earlier sales consider the product , so I try with
and
However, I don´t get returned sales for year, month and product.
Are there manner ways to compare sales in previous periods for each product? E.g. the amount for product: "machines" in 29/1/2017 must be zero.
Solved! Go to Solution.
I think you just need to remove the ALL(Sales) at the end to get the desired result.
with ALL you are removing the Product filter which you want to keep in place.
I got the below result with this measure:
Total Sales = SUM(Data[Value])
Sales Last Year = CALCULATE([Total Sales],SAMEPERIODLASTYEAR(Data[Date]))
I think you just need to remove the ALL(Sales) at the end to get the desired result.
with ALL you are removing the Product filter which you want to keep in place.
I got the below result with this measure:
Total Sales = SUM(Data[Value])
Sales Last Year = CALCULATE([Total Sales],SAMEPERIODLASTYEAR(Data[Date]))
dearwatson, thank you so much for your help.
But, something is missing because I can not get the result despite eliminating ALL(Sales).
The error is the same.
Please send me your .pbix file
is That possible?
Sure no problem
not sure how to attach but here's a onedrive link.
Excellent !! Thank you.
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 |
---|---|
107 | |
97 | |
75 | |
65 | |
53 |
User | Count |
---|---|
144 | |
103 | |
98 | |
85 | |
64 |