Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
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])
User | Count |
---|---|
115 | |
95 | |
87 | |
76 | |
65 |
User | Count |
---|---|
138 | |
113 | |
110 | |
98 | |
93 |