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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Desauv
Frequent Visitor

Auto replicate value between two dates

Hi

 

So this might be a fairly simple question, but I have this table below

IDStart DateEnd DateCount
XXX101-01-2022 1
XXX201-05-202201-08-20221

 

How do I make a visible that shows the sum of count every month, based on start and end date? 

 

The visual should show below numbers. If no "End Date" it should keep showing the value based on the user selected period.

JanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctober
1111222211

 

Thanks 🙂

 

Regards 

Stefan

1 ACCEPTED SOLUTION
v-xiaotang
Community Support
Community Support

HI @Desauv 

Thanks for reaching out to us.

please try this measure

count = COUNTX(FILTER('Table','Table'[Start Date]<=MIN('calendar'[Date]) && ('Table'[End Date]>=MAX('calendar'[Date]) || ISBLANK('Table'[End Date]))),[ID])

sample data

vxiaotang_0-1667551185879.png

calendar

vxiaotang_1-1667551202669.png

result

vxiaotang_2-1667551223124.png

 

Best Regards,

Community Support Team _Tang

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

View solution in original post

1 REPLY 1
v-xiaotang
Community Support
Community Support

HI @Desauv 

Thanks for reaching out to us.

please try this measure

count = COUNTX(FILTER('Table','Table'[Start Date]<=MIN('calendar'[Date]) && ('Table'[End Date]>=MAX('calendar'[Date]) || ISBLANK('Table'[End Date]))),[ID])

sample data

vxiaotang_0-1667551185879.png

calendar

vxiaotang_1-1667551202669.png

result

vxiaotang_2-1667551223124.png

 

Best Regards,

Community Support Team _Tang

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.