Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I have a line graph that displays speed for the past 7 days. How do I add a second line that shows speed for the same days of the previous week?
Solved! Go to Solution.
Hi @Anonymous,
My sample table:
Please create measure using the formula below. Create a table visual to display the result, check if it's correct.
speed for the same days of previous week = CALCULATE(SUM(Table1[speed]),DATEADD(Table1[Date],-7,DAY))
Beside your "speed for the past 7 days" measure, then add it as value level in line Chart, we can add mutiple measure as value levels in line chart.
Best Regards,
Angelia
Hi @Anonymous,
My sample table:
Please create measure using the formula below. Create a table visual to display the result, check if it's correct.
speed for the same days of previous week = CALCULATE(SUM(Table1[speed]),DATEADD(Table1[Date],-7,DAY))
Beside your "speed for the past 7 days" measure, then add it as value level in line Chart, we can add mutiple measure as value levels in line chart.
Best Regards,
Angelia
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
102 | |
86 | |
77 | |
70 |
User | Count |
---|---|
120 | |
108 | |
98 | |
83 | |
77 |