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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
powerbiexpert22
Post Prodigy
Post Prodigy

rolling count

i am trying to create line chart to show the rolling count of promoters by yearmonth, it is giving me same results for all yearmonth in table 

 

pbix

https://drive.google.com/file/d/1-3eT8k82RvTSem4EbzZJ_OlUU-A_PiMo/view?usp=drive_link

 

 

 

powerbiexpert22_0-1723012674716.png

promotersrolling2 =

calculate(
    survey2[Promoters],
'Date'[Date]>=EDATE(TODAY(),-3)

&&
'Date'[Date]<=TODAY()
)

 

 

 

1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@powerbiexpert22 , Try using below measure

 

PromotersRollingCount =
CALCULATE(
    COUNT(survey2[Promoters]),
    DATESINPERIOD(
        'Date'[Date],
        LASTDATE('Date'[Date]),
        -3,
        MONTH
    )
)



Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

1 REPLY 1
bhanu_gautam
Super User
Super User

@powerbiexpert22 , Try using below measure

 

PromotersRollingCount =
CALCULATE(
    COUNT(survey2[Promoters]),
    DATESINPERIOD(
        'Date'[Date],
        LASTDATE('Date'[Date]),
        -3,
        MONTH
    )
)



Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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