Hi, I've been trying to get my SamePeriodLastYear function to work without success. I must be missing something I'm sure I'll be kicking myself for missing but I can't seem to produce the correct values
Using fake data, in this screen print, I show august 21 sales data but there should be zero since I have no data for August 2020. I must be missing something in the calculation?
The screen print here shows the example, the data model and what the tables look like
Any help is appreciated.
Solved! Go to Solution.
Instead of this , create a seaparate measure ,
Total Sales = SUM(TrackSales[SalesAmt]) and use this measure in CALCULATE
Thanks very much! It worked!
Hi, I tried it and it wasn't successfull
Here's a screen print
Also , the Month and Year in the columns of the Matrix visual, are they from the calendar table? Please ensure that they are from the calendar table
the $ are from the sales table, and all the date related fields are from the calendar table.
I find that the Salesdate column is not of the 'Date' data type. In case the new mwasure does not work, please try changing the data type of Salesdate to 'Date' and try again.
I find that the Salesdate column is not of the 'Date' data type. In case the new measure does not work, please try changing the data type of Salesdate to 'Date' and try again. Please ensure that both the related date columns are of the 'Date' data type
Hold on. It does appear that it's working in the detail. Here's the screen print
So it seems that using the correct date in the column seemed to have done the trick.
It looks like the detail is working but the total seems to be calculating the results in correctly
Wouldn't the totals be equa
Thank you and I'll try that!
You are welcome. Also I find that the Salesdate column is not of the 'Date' data type. In case the new mwasure does not work, please try changing the data type of Salesdate to 'Date' and try again.
Instead of this , create a seaparate measure ,
Total Sales = SUM(TrackSales[SalesAmt]) and use this measure in CALCULATE
User | Count |
---|---|
142 | |
61 | |
59 | |
58 | |
47 |
User | Count |
---|---|
136 | |
72 | |
59 | |
56 | |
52 |