cancel
Showing results for
Did you mean:
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?

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

Proud to be a Super User!

1 ACCEPTED SOLUTION
Microsoft

Hi @vanessafvg,

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

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

Regards

3 REPLIES 3
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
Microsoft

Hi @vanessafvg,

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

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

Regards

Helper II

Announcements

#### Welcome to the User Group Public Preview

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

#### Microsoft Business Applications Summit sessions

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

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