Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
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?
Proud to be a Super User!
Solved! Go to Solution.
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
Hi,
Try this
=SUMX(FILTER(SUMMARIZE(Table2,Table2[Category],"counts",COUNTA (Table2[Category])),[COUNTS]>1).[COUNTS])
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
Check out this blog post by PowerPivotPro:
https://powerpivotpro.com/2012/03/subtotals-and-grand-totals-that-add-up-correctly/
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 58 | |
| 57 | |
| 45 | |
| 17 | |
| 17 |
| User | Count |
|---|---|
| 114 | |
| 111 | |
| 38 | |
| 36 | |
| 26 |