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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Help in Applying a Customer Rebate when % Discount is in the Customer Dim Table

 Hi All

 

Can you not upload a sample PBIX to the board to make it easier to explain the issue.

 

Hopefully you can help with an issue I am having.  This is a cut down version of my model which has a Sales table of 50 Million Records.

 

I have a Net Sales measure which is Sum Sales - Sum of Credits and I want to take of a % Rebate to give me Net Sales After Rebate.  The % Rebate that the Customer gets is held in the Customer Table and is Called NPCusRebate.  The Rebate Total Method below does work but the performance is dreadful and I was hoping one of the Superstars on the Board could help me with a better solution.

 

Thanks

 

Chris

 

 

Model

 

Model.PNG

 
 

Measures

 

Sales = CALCULATE(SUM(FactSales[Amount]))
Credit = SUM(FactSales[Credit Amount])
Net Sales = [Sales] - [Credit] +0
 
Rebate Total =
SUMX(
SUMMARIZE(
Customer,
Customer[CustomerID],
"NetSales", [Net Sales],
"Discount", [Rebate Selection]),
[NetSales] * [Discount])+0
  
Rebate Selection = IF( HASONEVALUE( Customer[NPCusRebate] ), VALUES( Customer[NPCusRebate] ), 0 )
 
Net Sales After Rebate =
IF(ISBLANK([Net Sales]),[Net Sales], [Net Sales]- [Rebate Total])
 
Results
Results.PNG
 
 
 
2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

It's a permissions thing with the upload. Most people share out the PBIX with OneDrive, Box, etc.


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors