Forum Discussion
Incorrect Measure Total
- 8 years ago
Hi,
The SUMX() portion of the formula should be something like this
=SUMX(SUMMARIZE(VALUES(Rebates[Account/Group]),[Account/Group],"ABCD",SUM(Sales value final)*AVERAGE(Rebates[% turnover])),[ABCD])
Include the curency symbol in the underlines portion.
If this formula does not help, then share the link from where i can download your PBI file.
Hi Ashish_Mathur ,
I have a problem with your solution.
I have an excel file with 3 tables:
a) Fact table with sales transactions
b) Dim table with Customer data
c) Dim table with Sales Personnel data
I'm trying to calculate the commissions per Sales Representative, but in this example, I'm just following an excercise to calculate the excess of $1,000 USD and have a total amount based on this measure.
My measure, which works perfectly fine for row level but not for the total, is the following:
Excess =
VAR ExcessAmount = SUM( Sales[Amount] ) - 1000
VAR ExcessTotal = SUMMARIZE( Sales, Slp[Slpcode], "ExcessTot", ExcessAmount )
RETURN
IF(
HASONEFILTER( Slp[Slpcode] ),
IF(
SUM( Sales[Amount] ) < 1000,
0,
ExcessAmount
),
SUMX(
VALUES( Slp[Slpcode] ),
ExcessAmount
)
)Here's my pbix file also.
The total shouls be $6,300
I'd really appreaciate your help, and the Community.
Best regards,
Fernando
- calerof7 years agoImpactful Individual
- Ashish_Mathur7 years agoSuper User
You are welcome. If my reply helped, please Accept it as Solution.
- calerof7 years agoImpactful Individual
Sure it did! I would if I knew how!
As it was an already solved question I don't find where to mark it as solved. Please show me.
Thanks again.
Fernando