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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.