March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
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/
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
User | Count |
---|---|
90 | |
89 | |
85 | |
73 | |
49 |
User | Count |
---|---|
167 | |
147 | |
92 | |
70 | |
58 |