Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello!
I have a Measure called NPS Score. This score is calculate liked this:
NPS Score =
var PromoterDetractor =
CALCULATE(Detail[Total Surveys],FILTER(Detail,Detail[Recommend Rating] = "Promoter")) - CALCULATE(Detail[Total Surveys],FILTER(Detail,Detail[Recommend Rating] = "Detractor"))
var Percentage =
divide(100,Detail[Total Surveys])
RETURN
PromoterDetractor * Percentage
I would like to have a table chart that looks like this:
I am struggling figuring out how to do this. I would like the NPS score as of what whatever the N filter would indicate. How do you create a Measure for that? Thank you!
Solved! Go to Solution.
@Anonymous , You can use a what if parameter
https://docs.microsoft.com/en-us/power-bi/desktop-what-if
you will get what measure
What if meausre = selectedvalue(param[param])
example , the new measure
Rolling N = CALCULATE([NPS Score],DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-1 * [What if meausre],MONTH))
@Anonymous , You can use a what if parameter
https://docs.microsoft.com/en-us/power-bi/desktop-what-if
you will get what measure
What if meausre = selectedvalue(param[param])
example , the new measure
Rolling N = CALCULATE([NPS Score],DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-1 * [What if meausre],MONTH))