Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi,
Need some help with the DAX for this if anyone can assist.
I have historical sales data where I need to sum all quantities sold between price changes.
e.g.
SKU | Date (DD/MM/YYYY) | Qty | Price |
A | 02/01/2020 | 12 | 1.25 |
A | 06/01/2020 | 14 | 1.20 |
A | 08/01/2020 | 20 | 1.20 |
A | 09/01/2020 | 15 | 1.20 |
A | 11/01/2020 | 12 | 1.25 |
A | 13/01/2020 | 8 | 1.25 |
A | 16/01/2020 | 12 | 1.20 |
So ideally I should see the following:
SKU | Date (DD/MM/YYYY) | Qty | Price |
A | 02/01/2020 | 12 | 1.25 |
A | 06/01/2020 | 49 | 1.20 |
A | 11/01/2020 | 20 | 1.25 |
A | 16/01/2020 | 12 | 1.20 |
Any ideas?
Cheers.
Solved! Go to Solution.
Hi, @Anonymous
Please check the below picture and the sample pbix file's link down below.
You can follow the steps to have the result column that is shown on the very right side of the table visualization.
All measures are in the sample pbix file.
https://www.dropbox.com/s/ptqhzju0j9kt6a2/aexley.pbix?dl=0
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Hi, @Anonymous
Please check the below picture and the sample pbix file's link down below.
https://www.dropbox.com/s/ptqhzju0j9kt6a2/aexley.pbix?dl=0
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Hi, @Anonymous
Please check the below picture and the sample pbix file's link down below.
You can follow the steps to have the result column that is shown on the very right side of the table visualization.
All measures are in the sample pbix file.
https://www.dropbox.com/s/ptqhzju0j9kt6a2/aexley.pbix?dl=0
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
That's awesome! Thanks @Jihwan_Kim .
If you're up for helping I'm trying to add the a Price Elasticity of Demand (PED) formula to the table.
PED = [ (Q1 - Q0) / (Q1 + Q0) ] / [ (P1 - P0) / (P1 + P0) ]
This would make the table look like this:
Hi, @Anonymous
Please check the below picture and the sample pbix file's link down below.
https://www.dropbox.com/s/ptqhzju0j9kt6a2/aexley.pbix?dl=0
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
User | Count |
---|---|
15 | |
11 | |
6 | |
6 | |
5 |
User | Count |
---|---|
29 | |
17 | |
11 | |
7 | |
5 |