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.
Hi Guys,
I want to create a line chart with on the axis the date and in the value of the chart the total sum or count of 5 days back from every specific day on the axis. So if in the date axis comes the date 24-10-2019; I want that the linevalue on that date is a sum or count of the days (23-10, 22-10 ,21-10, 20-10, 19-10).
I can't find or make a measure to fix this, Please help!
Solved! Go to Solution.
Hi - Try below measure.
Rolling 5 Days = CALCULATE(SUM(Data[Value]),DATESINPERIOD(Data[Date],LASTDATE(Data[Date]),-5,DAY))
Refer date column in DATESINPERIOD(), and make sure its format is date.
I hope this will help.
Cheers!
Sanj
Hi - Try below measure.
Rolling 5 Days = CALCULATE(SUM(Data[Value]),DATESINPERIOD(Data[Date],LASTDATE(Data[Date]),-5,DAY))
Refer date column in DATESINPERIOD(), and make sure its format is date.
I hope this will help.
Cheers!
Sanj
Nice it kinda works.
is it possible to set the three different colors(years) over each other.
Now i have a date format on the axis, so the years are after eacht other.
Hi - I guess this is not possible in power BI till now.
Please mark previous reply as solution if that works for you.
Kudos are even nice.
Cheers!
Sanj
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 |
---|---|
112 | |
99 | |
75 | |
64 | |
63 |
User | Count |
---|---|
140 | |
105 | |
102 | |
81 | |
67 |