Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi,
I am trying to find the sales for this year vs last year and this is what I did.
Created 2 new measures:
Total Sales = SUM(v_FactDailySalesWithLowestPriorityRecord[Net Sales USD])
Total Sales LY = CALCULATE([Total Sales],SAMEPERIODLASTYEAR(Dim_Date[Calendar_Date]))
Till here I was able to succeed in what I want to achieve and below is how it looked like.
Now I thought of adding a filter on Calendar Year and this is what is causing the issue to me.
When I did that and filtered my year to 2016 as shown below, I am not getting the sales for Total Sales LY( Last year sales).
This is even happening to me If I select 2 years like 2015 and 2016 as shown below.
Can someone help me with this?
Solved! Go to Solution.
HI @reddy421
Please try
Total Sales LY = CALCULATE( [Total Sales], ALL(Dim_Date) , SAMEPERIODLASTYEAR(Dim_Date[Calendar_Date]) )
HI @reddy421
Please try
Total Sales LY = CALCULATE( [Total Sales], ALL(Dim_Date) , SAMEPERIODLASTYEAR(Dim_Date[Calendar_Date]) )
Thanks for the help Phil_seamark.
This worked out now.
User | Count |
---|---|
124 | |
108 | |
99 | |
62 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |