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.
I need to compare YoY sales but for the manufacturers from last year. I tried this:
LYSales=
var LYManufacturers = CALCULATETABLE(values('Manufacturers'[Manufacturers]), sameperiodlastyear(Date[date]))
return
calculate([TotalSales], LYManufacturers)
but I get a wrong grand total. The grand total adds up the amount from all the previous years.
Solved! Go to Solution.
I solved this like this:
@GoingIncognito wrote:I need to compare YoY sales but for the manufacturers from last year. I tried this:
LYSales=
var LYManufacturers = CALCULATETABLE(values('Manufacturers'[Manufacturers]), sameperiodlastyear(Date[date]))
return
calculate([TotalSales], LYManufacturers)
but I get a wrong grand total. The grand total adds up the amount from all the previous years.
I solved this like this:
@GoingIncognito wrote:I need to compare YoY sales but for the manufacturers from last year. I tried this:
LYSales=
var LYManufacturers = CALCULATETABLE(values('Manufacturers'[Manufacturers]), sameperiodlastyear(Date[date]))
return
calculate([TotalSales], LYManufacturers)
but I get a wrong grand total. The grand total adds up the amount from all the previous years.
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 | |
96 | |
78 | |
68 | |
55 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |