Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
wildvike
Frequent Visitor

Measure Total

For our company's sales reps, we pay a commission based on the number of new accounts and average balance of those new accounts at a client level, not an overall level.  Below is what I put together for one of our reps:

 

wildvike_0-1696270934773.png

For example, client# 164 placed 49 accounts with an average balance over $50k.  This results in a $500 commission for the sales rep for this client.  This is repeated for each of the clients assigned to the rep.  The measure for the Commission (Sign) column is:

 

wildvike_2-1696271484601.png

 

The issue I'm running into is that it applies the measure to the total as well instead of summing the individual clients.  If you add up each individual client's commission, you would get $3,000, but the logic applies to the overall total of the two preceeding columns, giving the overall commission $3,750.

 

I'm looking for one of two options:

  • Is there a way to sum the Commission (Sign) column instead of having the logic apply to the total, or
  • Is there another measure to create that would get me the sum of the invidual clients' commissions where I can put the correct amount ($3000) in a card?

Thanks!

 

1 ACCEPTED SOLUTION
DataZoe
Microsoft Employee
Microsoft Employee

@wildvike 

You can wriap the measure in a SUMX to get the total to do what you want.

SUMX(Values('Table'[Client #]), [Commission (Sign))])

 

DataZoe_0-1696273036718.png

 

Respectfully,
Zoe Douglas (DataZoe)



Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/

View solution in original post

2 REPLIES 2
DataZoe
Microsoft Employee
Microsoft Employee

@wildvike 

You can wriap the measure in a SUMX to get the total to do what you want.

SUMX(Values('Table'[Client #]), [Commission (Sign))])

 

DataZoe_0-1696273036718.png

 

Respectfully,
Zoe Douglas (DataZoe)



Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/

Thanks, that worked for me!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.