cancel
Showing results for
Did you mean:

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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?

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
Employee

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

Hi,

Try this

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

Regards,
Ashish Mathur
http://www.ashishmathur.com
Employee

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

Announcements

#### Fabric certifications survey

Certification feedback opportunity for the community.

#### Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

#### Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors