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
Hi all,
I am looking for a solution not to calculate but to show all entries of a table that have an start date before and an end date after a selected date.
I have created a simple example as per screenshot and PBIX file below:
http://roggenmoor.de/PowerBi/DashboardScreenshot.jpg
http://roggenmoor.de/PowerBi/filter_twodatecolumns.pbix
In that example I would like to select the 07/01 and want to have the event starting on the 6/01 and ending on the 08/01 shown in the table below.
Thanks for your help
BR
Andreas
Solved! Go to Solution.
Hi, @Anonymous
Please correct me if I wrongly understood your question.
I have attached the sample pbix file's link down below.
I made an inactive relationship for both the start date and the end ate - date table.
I created the measure like below, and inserted into the visual filter.
truefalse measure =
CALCULATE (
COUNTROWS ( event ),
FILTER (
event,
event[start_date] <= SELECTEDVALUE ( 'date'[Date] )
&& event[end_date] >= SELECTEDVALUE ( 'date'[Date] )
)
)

https://www.dropbox.com/s/1aubishhz9w5n23/filter_twodatecolumns.pbix?dl=0
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster.
Hi, @Anonymous
Please correct me if I wrongly understood your question.
I have attached the sample pbix file's link down below.
I made an inactive relationship for both the start date and the end ate - date table.
I created the measure like below, and inserted into the visual filter.
truefalse measure =
CALCULATE (
COUNTROWS ( event ),
FILTER (
event,
event[start_date] <= SELECTEDVALUE ( 'date'[Date] )
&& event[end_date] >= SELECTEDVALUE ( 'date'[Date] )
)
)

https://www.dropbox.com/s/1aubishhz9w5n23/filter_twodatecolumns.pbix?dl=0
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster.
Hi Jihwan,
That looks pretty good. Thank you so much.
BR
Andreas
Hi,
This could be a start. Download the PBI file from here.
Hope this helps.
Thanks Ashish as well!
You are welcome.
Hi, @Anonymous
I am not sure if it is only me or not, but I cannot open your linked pbix file.
Is it OK with you to share it via dropbox, onedrive or google drive?
thank you.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!