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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Get help with getting a rolling month bar graph

There are multiple projects, and they have different approve date and deployment date, i want to achieve a date bar graph which each month will show the number of on going projects based on the end of that month.

 

For example for month of April, it should only display the count of projects which approve date is before the last day of april (30th april)  and the deployment date of the project is on or after the first day of next month (1st may)

This is only for april, and this calcualtion should be apply to all other month, Is this possible to be showed within a month bar visual?

Thankyou!

6 REPLIES 6
Anonymous
Not applicable

Hi @Anonymous ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data. 

vtangjiemsft_0-1667975188540.png

(2) We can create  a calculated column.

Month = MONTH('Table'[approve date])

(3)We can create  a measure. 

Count = 

var _appro   =SELECTEDVALUE('Table'[Month])

var _t= FILTER( 'Table' , MONTH('Table'[deployment date]) = _appro+1)

return

COUNTROWS(_t)

(4) Then the result is as follows.

vtangjiemsft_1-1667975298465.png

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

Anonymous
Not applicable

Hi i have got the answer, but it only count the deployment month one month after the approve month, it does not count deployment month more month after the approve month.

for example it only count the project on jan when the deployment month is feb, but if it is mar, it is not counted, is there a way to solve it?

Anonymous
Not applicable

Hi @Anonymous ,

 

We can create  a measure. 

Measure = 
var _a = EOMONTH(MAX('Table'[approve date]),0)
return CALCULATE(COUNT('Table'[project]),FILTER(ALL('Table'),[approve date]<=_a&&[deployment date]>_a))

Then the result is as follows.

vtangjiemsft_0-1667986403075.png

 

Best Regards,

Neeko Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

Anonymous
Not applicable

i realise i edited the formula correctly but the value is wrong

Anonymous
Not applicable

JJ0802_1-1667976374476.png

 this was the error

Anonymous
Not applicable

JJ0802_0-1667976254035.png

hi i can only get it for the year, but not the month, the month it will show error

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors