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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I have a cumulative count that is working except when the number is the same the next row, this is my DAX:
cumulative total3 =
var refArrivals = SUM(Query1[Arrivals])
return
CALCULATE(
SUM(Query1[Arrivals]),
FILTER(
ALLSELECTED(Query1[ReferralSource]),
CALCULATE(SUM(Query1[Arrivals]) >= refArrivals
)
))
Solved! Go to Solution.
@RossP , Try like
cumulative total3 =
var refArrivals = SUM(Query1[Arrivals])
return
CALCULATE(
SUM(Query1[Arrivals]),
FILTER(
ALLSELECTED(Query1[ReferralSource]),
Query1[ReferralSource] <= max(Query1[ReferralSource])
)
)
or
cumulative total3 =
var refArrivals = Summarize(Query1, Query1[ReferralSource]), "_sum" SUM(Query1[Arrivals]))
return
sumx(filter( refArrivals, [_sum]< = maxx( refArrivals,[_sum])),[_sum])
@RossP , Try like
cumulative total3 =
var refArrivals = SUM(Query1[Arrivals])
return
CALCULATE(
SUM(Query1[Arrivals]),
FILTER(
ALLSELECTED(Query1[ReferralSource]),
Query1[ReferralSource] <= max(Query1[ReferralSource])
)
)
or
cumulative total3 =
var refArrivals = Summarize(Query1, Query1[ReferralSource]), "_sum" SUM(Query1[Arrivals]))
return
sumx(filter( refArrivals, [_sum]< = maxx( refArrivals,[_sum])),[_sum])
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |