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
Anonymous
Not applicable

Filter Year between two date fields

I have two date fields in database say Start_date and End_Date. I need to set two filters say 'Year' and "Month' in the dashboard. 

Suppose the Start_date is 12.05.2014 and End_date is 30.07.2018 and there is a record in database for this item. If Year in the dashboard is filtered for 2017, since the Year 2017 is between the Start_date (12.05.2014) and End_date (30.07.2018) this record has to be fetched. 

Is there any solution for this scenario? Kindly note that I am doing this in Direct Query.

1 ACCEPTED SOLUTION
v-joesh-msft
Solution Sage
Solution Sage

Hi @Anonymous ,

See if the demo below is the result you want:

https://qiuyunus-my.sharepoint.com/:u:/g/personal/pbipro_qiuyunus_onmicrosoft_com/ERzocX8_cs1Hi7_vH87_PMoBncA9IRcVIVhO1OKmwmTgJQ?e=Ln3dpv 

If it doesn't meet your requirement, kindly share your sample data and expected result if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

Best Regards,

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Any solutions for this issue?

v-joesh-msft
Solution Sage
Solution Sage

Hi @Anonymous ,

See if the demo below is the result you want:

https://qiuyunus-my.sharepoint.com/:u:/g/personal/pbipro_qiuyunus_onmicrosoft_com/ERzocX8_cs1Hi7_vH87_PMoBncA9IRcVIVhO1OKmwmTgJQ?e=Ln3dpv 

If it doesn't meet your requirement, kindly share your sample data and expected result if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

Best Regards,

Community Support Team _ Joey
If this post helps, then 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.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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