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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.