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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Invesco
Helper V
Helper V

21 Day Rolling - Measure is giving me broken line in my graph

Hi Experts

 

when i select mulitple Activitys over a period i get broken line in my line graph - which are show 21 days rolling trends...

Measure

3 Week Rolling Trend = DIVIDE( CALCULATE(
COUNT('dev_rates_activity_volume_and_cf_days'[activity_type_2]),
DATESINPERIOD('dev_rates_activity_volume_and_cf_days'[Date],LASTDATE('dev_rates_activity_volume_and_cf_days'[Date]),-21,DAY)
) ,21)
 
Not sure how to resolve this....
 
 
1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

You should calculate this over your calendar table, not your fact table.  Please show your data model and/or provide sample data.

View solution in original post

2 REPLIES 2
Invesco
Helper V
Helper V

Ibendlin - thanks for the feedback...

lbendlin
Super User
Super User

You should calculate this over your calendar table, not your fact table.  Please show your data model and/or provide sample data.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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