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
Anonymous
Not applicable

DAX Measure with a timeline

Hi,

 

I think its a simple question-but dont blame me I dont rlly use Measures often. 

 

What I've got:

(1) I got a table where Users give an rating from 1-10. I got each day like 50 different ratings. 

(2) a measure to calculate the NetPromoterScore (=difference of promoter 9-10 rating to detractors 0-6 rating): 

NPS SCORE = ([% Promoters]-[% Detractors])*100

(%Promoters and %Detractors are measures too)

 

What I want

If I try to visualize it. It calculate on each day a new NPS Score. But I want it to be continuous. Each following day it should be added and not calculated new.

Ive got an date column too.

 

Tanks for any help, I really dont know how to add the time here.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

What I understood is that you want cumulative NPS Score.

You can use something along these lines 

 

Cumulative NPS Score = 
CALCULATE (
    [NPS Score],
    FILTER (
        ALL ( 'Date Table' ),
        'Date Table'[Date Column] <= MAX ( 'Date Table'[Date Column] )
    )
)

 

Let me know if this works.

 

Regards,

Aditya

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

What I understood is that you want cumulative NPS Score.

You can use something along these lines 

 

Cumulative NPS Score = 
CALCULATE (
    [NPS Score],
    FILTER (
        ALL ( 'Date Table' ),
        'Date Table'[Date Column] <= MAX ( 'Date Table'[Date Column] )
    )
)

 

Let me know if this works.

 

Regards,

Aditya

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

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.