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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
vanessafvg
Super User
Super User

Incorrect Total showing

why would the total still count everything?

 

measure = CALCULATE(COUNTROWS(Table2), FILTER(Table2, COUNTROWS(Table2) > 1) )

 

how does one adjust the grand total to reflect the correct amount?

 

Capture.PNG

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




1 ACCEPTED SOLUTION
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @vanessafvg,

 

Based on my test, the formula below should work in your scenario. Smiley Happy

Measure 2 =
SUMX (
    SUMMARIZE ( Table2, Table2[Category], "counts", COUNTA ( Table2[Category] ) ),
    IF ( [counts] > 1, [counts] )
)

m1.PNG

 

Regards

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

 

Try this

 

=SUMX(FILTER(SUMMARIZE(Table2,Table2[Category],"counts",COUNTA (Table2[Category])),[COUNTS]>1).[COUNTS])

Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @vanessafvg,

 

Based on my test, the formula below should work in your scenario. Smiley Happy

Measure 2 =
SUMX (
    SUMMARIZE ( Table2, Table2[Category], "counts", COUNTA ( Table2[Category] ) ),
    IF ( [counts] > 1, [counts] )
)

m1.PNG

 

Regards

Beckham
Advocate II
Advocate II

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!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.