Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hello!
I'm currently calculating % price change since last sale (sorted by months).
For example, I sold Product A for 100$ on 5.01.2019 and the next sale of the exactly same product were on 10.03.2019 for 80$.
Thus, I need table/chart, which will be showing that price change -> in this case is -20% on March 2019.
To get things more complicated, I have 3 main product groups with a few unique index in every group.
I share below some of pbix sample.
https://drive.google.com/open?id=1mKvql1qUVHh69lhoeQSdHakKKJ40h7_9
Thanks in advance for any help! 😉
Solved! Go to Solution.
@pawelj795
Can you please try this
I think I should use AVERAGE instead of SUM because I could have a few sales for different prices in same month.
What do you think?
Another important thing, how to hide values in first month?
I want to show prices only for current year.
This code will compare the sales of current date with last date with sale. So you don't need to worry about that. Even if you have sales on multiple dates of a month or everyday this code will work fine.
Something is wrong 😞
To be clear, under indexes there are invoice numbers.
I tried slightly modified solution which you mention but still it doesn't working.
What I am doing wrong?
@pawelj795
Can you please try this
User | Count |
---|---|
41 | |
27 | |
23 | |
19 | |
16 |
User | Count |
---|---|
54 | |
35 | |
19 | |
18 | |
15 |