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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Sum totol at distinct category level.

Hi everyone, 

 

Here is what I am tryiny to achieve:  the same customer has multiple customer reference numbers with different credit limits. 

I am trying to create a summary table at customer name level (not show reference details) that refelect the Credit limit total for this customer. Please see sample data below,  CDW has three reference numbers, my expected result that the total credit limit would return $600,001 at customer name level.   

 

The sum credit limit will only pick the unique credit limit value one time, and add them up.  (If the trx has negactive balance in balance due, it won't show any credit limit value. I would say for blank ones, we could ignore it).

 

Any advise is very much appreicated!  Thank you! 

 

Flora 

 

Trx data table:

Cust Ref NoCustomer NameCredit LimitBalanace Due
100001CDW       50,000.00                 100.00
100002CDW       10,000.00                 100.00
100003CDW                 1.00                   50.00
100001CDW       50,000.00                 100.00
100002CDW       10,000.00                 100.00
100003CDW                 1.00                   50.00
100001CDW                       (50.00)

 

Exepcted summary table: 

 Credit LimitBalance Due
CDW600001             450.00
1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

You could do this:

 

Measure = SUMX(DISTINCT('Table'[Credit Limit]),[Credit Limit])

 

Not sure where your Balance Due is coming from, seems like it should be $250. 



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...

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.