Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi guys,
I wanted to do a basic calculation using sumx to model the changes to total sales when discounts are modified based on a criteria but I can see that my total is largely over than expected. The measure is listed below.
Any help would be appreciated !
Your measure is pretty difficult to understand but I'm guessing you can simplify it into something more like this:
SUMX (
VALUES ( CUSTOMERS[CNAME] ),
SUMX (
CALCULATETABLE ( VALUES ( SALES[PI] ), [AVERAGE SPEND] > 0 ),
[LIST PRICE] * ( 1 - [PROPOSED DISCOUNT] ) * [AVERAGE QUANTITY SOLD]
)
)
I'm making quite a few assumptions here, so I don't necessarily expect this to work but it might be a place to start from.
Hi there,
Thanks for your help. It didnt work.
Essentially, I just want the total to be the correct sum of each individual account above for measure 3. The measure is being calculated correctly but the total is way over than what is expected
User | Count |
---|---|
41 | |
27 | |
23 | |
18 | |
15 |
User | Count |
---|---|
54 | |
35 | |
19 | |
18 | |
15 |