Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello Everyone,
I am new to power BI, Please help me, I want my chart to be like below,
The time interaval for the chart is from ( 03/26(today) to 12/13 ) ( 15 interval total )
each bar is having 7 days data ( sum(measure) for 7 days )
first bar shows the 7 days of data next bar starts from 8th day
please help me creating calculation for the same
Thanks a lot in advance
Regards
SV
@Anonymous
If you want to get sum of previous 7 days, you can use the following measure, I also have it in column in the pibx.
Measure = CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),SUMX(FILTER('Table',EARLIER('Table'[Date])<='Table'[Date]&& EARLIER('Table'[Date])>='Table'[Date]-6),'Table'[Value])))But if you want to get date sliced by 7 days, you could just use Group dates.
I put them in a sample pbix, try combine it with your own data.
Paul Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Thanks a lot for sharing,
The solution is provided giving last 7 days sum for each day, but i need bucket wise
I saw the group column with bins, but it looks like the week is starting from sunday, is there any way to make week start based on today, like today()-7the is week start
Regards
Sreeharsha Vemula
Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.