active customers
3 TopicsHow to calculate active customers current and previous month by customer code
Good day. ROA=running of account I wanted to get the previous month active customer by using: Previous Month ROA = CALCULATE (DISTINCTCOUNT('Running of Account'[Debtor Code]), PREVIOUSMONTH('Running of Account'[Date])) But i got no value. For current month ROA I'm using: Current Month ROA = CALCULATE ( DISTINCTCOUNT('Running of Account'[Debtor Code]), YEAR( 'Calendar'[Date]) = YEAR(MAX('Calendar'[Year Month])), MONTH( 'Calendar'[Date]) = MONTH(MAX('Calendar'[Year Month]))) And for current month is fine. May I know where I have do it wrong? Below are my example data. Calendar table Running of account data: Thank you so much.Solved1KViews0likes5Commentscalculate active customers previous month and current month
I have 3 columns and I want to get active customers for current month where status = "won" and active customers for previous month where status = "won" for current month im using ActiveMembers = CALCULATE(DISTINCTCOUNT(Table[Customer]),PARALLELPERIOD(table[Date],0,MONTH),FILTER( 'Table','table'[Status] ="won" )) and it's working fine. but i have getting no value for previous month and I'm using: ActiveMemberPreviousMonth = CALCULATE(DISTINCTCOUNT('table'[Customer]),PREVIOUSMONTH('table'[Date]), FILTER('table','table'[Status]="Won")) Problem statement: I want help to get current active member and previous month active member where status = "Won" expected solution: eg: if today is 12 March 2021: I want active users of the current month March 2021: 5364 users and previous month i.e Feb 2021 : active users 3265 users. my example data for the table is shown below customer date status xyz 03-01-2018 won abc 03-01-2018 lost efd 03-01-2018 won ghy 03-01-2018 lost tgh 05-02-2018 won fht 01-01-2019 wonSolved6.4KViews0likes9CommentsCount distinct customers having sales
Hi everyone, I m new to Power BI and struggling with Power BI DAX. I'm trying to count Distinct customers having sales. It means when selecting relevant months, only customers having sales will be counted. I used the following measure: "CALCULATE(DISTINCTCOUNT(Rawdata[cust code]), FILTER(Rawdata, CALCULATE(SUM(Rawdata[f_Value]), ALLEXCEPT(Rawdata,Rawdata[cust code]))>0))" Error: It does not work with the condition "having sales > 0". For example, I select Oct 2019, it counts all distinct customers, including customers having sales < 0. I think the Filter function does not work, it just summerize the sales of customers of any time, not based on the months that I selected (ex Oct'19). Hope that you can help me on this issue. Thanks a lot in advance!4.2KViews0likes2Comments