Forum Discussion
Running net promoter score
I want to make a graph where I want see the nps progress from day 1 to current day for a current month.
I don't want nps per day but I want running nps.
For example if first day positive, negative and neutral scores are 10, 2, 1 and second day 10, 1, 1 then then total nps on second day would be calculated by 20 positive, 3 negative, 2 neutral.
So I want to see this graph of nps as running nps.
I also want to see the status of nps at each 4 hours in a day
7 Replies
- amitchandak
Super User
Ramendra , Try cumulative like this with date Calendar
Cumm positive = CALCULATE(SUM(Table[positive]),filter(date,date[date] <=maxx(date,date[date]))) Cumm positive = CALCULATE(SUM(Table[positive]),filter(date,date[date] <=max(Table[ Date])))To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/- Ramendra
Helper IV
Hi,
Thankyou for your help amitchandak .
Yes the calculate function is working fine if I want to see cumulative NPS for a month as per my requirement.But I am not able to identify what to do to see the next level of same hierarchy which is like , I want to see the cumulative NPS for this month in three cotegories like morning status , afternoon status and then evening status.
Is there any way to add hours in date heirarchy like filter(date,date[hour] to get the result
- amitchandak
Super User
Ramendra , Can you share sample data and sample output. I will try
- v-xicai
Community Support
Hi Ramendra ,
Currently, it is not supported to add time to date hierarchy in Power BI.
As a workaround, you may use series of TIME functions to get Time column, format the data type of Time column as "hh:mm:ss" or other format, and create measure like DAX below to get cumulative NPS value.
Column: Time = TIME(HOUR('Table'[Created]),MINUTE('Table'[Created]),SECOND('Table'[Created])) Measure: NPS value = CALCULATE(SUM('Table'[Value]),FILTER(ALLSELECTED('Table'),'Table'[Created]<=MAX('Table'[Created])))Finally, you can choose Matrix visual to display result, add Time column to Columns box of Matrix visual behind date field.
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Ramendra
Helper IV
Hi But your screenshots showing the data for feb and March also. But I have given data only for april.
I want to see MTD for april at a perticular time for example I want MTD NPS on 3rd april till 3 PM.
Can you please help.