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
Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.
Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!
Join the biggest FREE Business Applications Event in LATAM this February.
User | Count |
---|---|
96 | |
80 | |
43 | |
32 | |
29 |
User | Count |
---|---|
134 | |
94 | |
90 | |
46 | |
42 |