Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
romovaro
Responsive Resident
Responsive Resident

Average NPS formula by Fiscal year not working

HI all

 

I have an issue with one of my NPS formulas:

 

First I have a formula to get the average.

 

Client_Scores Event =
CALCULATE(
    AVERAGE('ResponsesFY25'[LTR - Event]),
    ALLEXCEPT('ResponsesFY25','ResponsesFY25'[Client Account Name])
)
 
And then I have a formula to see if customer is "D / P / Pr" during.
Event Score Status =
IF('ResponsesFY25'[Client_Scores Event] <= 6.99 , "Detractor",
IF('ResponsesFY25'[Client_Scores Event] <= 8.99, "Passive",
IF('ResponsesFY25'[Client_Scores Event] <= 10, "Promoter",
"TBD"
)))
 
 
The problem I have is that formula is not updating results if different FY are selected.
Customer in table (left) is passive because average of ALL scores is btw 7 - 8,99
 
BUT....Same Customer (table right) if selecting FY24. Scores is 47 and Average is 9.4...then PROMOTER (not passive)
romovaro_0-1747312360800.png

 


 

any suggestion? thanks,

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

The problem is that ALLEXCEPT is removing the filters from the expanded table, which presumably includes the date table. You can modify your code to

Client_Scores Event =
CALCULATE (
    AVERAGE ( 'ResponsesFY25'[LTR - Event] ),
    ALLEXCEPT ( 'ResponsesFY25', 'ResponsesFY25'[Client Account Name], 'Date'[FY] )
)

You will need to include in the ALLEXCEPT any columns in the date table which may be used to sort the fiscal year column, if it is not sorted by itself.

View solution in original post

1 REPLY 1
johnt75
Super User
Super User

The problem is that ALLEXCEPT is removing the filters from the expanded table, which presumably includes the date table. You can modify your code to

Client_Scores Event =
CALCULATE (
    AVERAGE ( 'ResponsesFY25'[LTR - Event] ),
    ALLEXCEPT ( 'ResponsesFY25', 'ResponsesFY25'[Client Account Name], 'Date'[FY] )
)

You will need to include in the ALLEXCEPT any columns in the date table which may be used to sort the fiscal year column, if it is not sorted by itself.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.