Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
For the terminations data, both the Data view and the visuals are showing the correct numbers.
But for active customers, the Data view and the visuals don’t match.
Example: On July, the Data view shows 7,645, but the visual shows 6,880, based on the measure.
It seems to be a filter context issue — I can’t align the numbers between the Data view and the visuals for active customers. Can you help me fix this?
Solved! Go to Solution.
Thanks @wardy912 your version didn't worked for me, based on my requirement i followed other way i tried thi below.
Hi @chaitanya1
Your terminated customers users this
FILTER (
ALL ( 'V1+V2+Terminations CitiesOrders' ),
'V1+V2+Terminations CitiesOrders'[endDate] <= MonthEnd
)
This removes all filters from the table and applies a custom filter based on endDate. So it behaves consistently across visuals and the Data view
Active customers uses
FILTER (
ALL ( 'V1+V2+Terminations CitiesOrders' ),
'V1+V2+Terminations CitiesOrders'[startDate] <= MonthEnd
)
This also removes filters, but only considers startDate. If your data model or visuals apply filters on endDate, New OrderStatus, or other fields, they might interfere unless explicitly removed.
Also, if your visual has slicers or filters (e.g., city, product, etc.), they do apply unless removed with ALLSELECTED, REMOVEFILTERS, or ALL.
Use this modified DAX for Active users
Active Customers EOM =
VAR MonthEnd = EOMONTH(MAX('DimDate'[Date]), 0)
VAR ActiveCount =
CALCULATE(
DISTINCTCOUNT('V1+V2+Terminations CitiesOrders'[Service Ref]),
'V1+V2+Terminations CitiesOrders'[New OrderStatus] = "Active",
FILTER(
ALL('V1+V2+Terminations CitiesOrders'),
'V1+V2+Terminations CitiesOrders'[startDate] <= MonthEnd &&
(
ISBLANK('V1+V2+Terminations CitiesOrders'[endDate]) ||
'V1+V2+Terminations CitiesOrders'[endDate] > MonthEnd
)
)
)
VAR LatestMonth =
EOMONTH(
MAXX(ALL('V1+V2+Terminations CitiesOrders'), 'V1+V2+Terminations CitiesOrders'[startDate]),
0
)
RETURN
IF(MonthEnd <= LatestMonth, ActiveCount, BLANK())
I hope this helps, please give kudos and mark as solved if it does, thanks!
Thanks @wardy912 your version didn't worked for me, based on my requirement i followed other way i tried thi below.
User | Count |
---|---|
67 | |
61 | |
47 | |
35 | |
32 |
User | Count |
---|---|
87 | |
72 | |
56 | |
49 | |
45 |