Forum Discussion
YoY Qty Measure
- 5 years ago
tenfingers Anonymous amitchandak
Thanks Guys for your help. I found a very simple soloution from my problem.
i mades some new basic measures.
1. i summarized all the sales =SUM(TotalSales[Qty])
2. Qty Last Year = CALCULATE(TotalSales[Qty], SAMEPERIODLASTYEAR (Date[Date]))
3. Differnece from This year to Last year = IF( ISBLANK ([QtyLY]) , BLANK(), [TotalSales]-[QtyLY] )
result fits perfect for me.
Thx again
regards Tom
maybe i miss something. i can add a quickmeasure which shows me the differnence in Qty YoY in %
but i´m not able to have q quickmeasure for difference in Qty YoY in total numbers?
here is the code for qty in % can i tweak this code? the result of the code below are %
HI Thomas_Ramhapp,
You can take a look at the following links to know how to use the 'if statement' to find out the current row context level, then you can write a specific expression to replace the total level calculations results.
Clever Hierarchy Handling in DAX
Measure Totals, The Final Word
Regards,
Xiaoxin Sheng