Forum Discussion
Line chart suddenly showing huge numbers
- Anonymous6 years ago
Hi DNKL ,
It seems the formula which calculate the total number of customers(COUNTA(D_Customers[Customer code])) can't return the correct value, please try to update the formula of measure "%Sub_Tracker running total " as below:
%Sub_Tracker running total =
DIVIDE (
[Sub_Tracker running total],
COUNTX (ALL( 'D_Customers'), D_Customers[Customer code] )
)If the above method still not working, please provide the related tables structure and some sample data(exclude sensitive data). Thank you.
Best Regards
Rena
Hi DNKL ,
It seems the formula which calculate the total number of customers(COUNTA(D_Customers[Customer code])) can't return the correct value, please try to update the formula of measure "%Sub_Tracker running total " as below:
%Sub_Tracker running total = DIVIDE ( [Sub_Tracker running total], COUNTX (ALL( 'D_Customers'), D_Customers[Customer code] ) ) |
If the above method still not working, please provide the related tables structure and some sample data(exclude sensitive data). Thank you.
Best Regards
Rena
Hi Anonymous ,
Thank you for your reply!
I tried out the DAX solution you suggested. With making a slight adjustment (using ALLSELECTED() instead of ALL()), the solution you provided works! Thank you very much for your help! 🙂
Best,
DNKL