cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
vanessafvg
Super User I
Super User I

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

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




1 ACCEPTED SOLUTION
v-ljerr-msft
Microsoft
Microsoft

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 III
Super User III

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
Microsoft

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

Beckham
Helper II
Helper II

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Get Ready for Power BI Dev Camp

Power BI Dev Camp - June 24th

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors