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

Show all entries of a table with start and end date based

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

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

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] )
)
)

 

Picture5.png

 

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.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

7 REPLIES 7
Jihwan_Kim
Super User
Super User

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] )
)
)

 

Picture5.png

 

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.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Anonymous
Not applicable

Hi Jihwan,

That looks pretty good. Thank you so much.

BR

Andreas

Ashish_Mathur
Super User
Super User

Hi,

This could be a start.  Download the PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Thanks Ashish as well!

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Jihwan_Kim
Super User
Super User

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.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Anonymous
Not applicable

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