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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Filter Table using Selected Montha na d Year

I need an urgent help.

 

I have a month and year filter, which linked to the Date table.

 

I have another table A which is not linked to the date able and it has a Start date and End date.

 

Now I want to filter table A where the selected Year and Month lies in between the Start Date and End Date.

 

Please help me.

Thanks

1 ACCEPTED SOLUTION
v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

Could you tell me if your problem has been solved? If it is, kindly mark the helpful answer as a solution if you feel that makes sense. Welcome to share your own solution. More people will benefit from here.

 

Best Regards,

Xue

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

Best Regards,
Xue Ding
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
v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

Could you tell me if your problem has been solved? If it is, kindly mark the helpful answer as a solution if you feel that makes sense. Welcome to share your own solution. More people will benefit from here.

 

Best Regards,

Xue

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

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

 

I create a sample to calculate total values when the selected date is between start date and end date. You can reference it to modify yours.

 

  1. I created a new date table.
Table = CALENDARAUTO()

1.png2.png

  1. Create a measure
Measure =
VAR a =
    CALCULATE (
       SUM ( Table1[values] ),
        FILTER ( Table1, MAX ( 'Table'[Date].[Year] ) = Table1[START_DATE].[Year] )
    )
VAR b =
    CALCULATE (
        SUM ( Table1[values] ),
        FILTER (
            Table1,
            MAX ( 'Table'[Date] ) <= Table1[END_DATE]
                && MAX ( 'Table'[Date] ) >= Table1[START_DATE]
        )
    )
RETURN
    IF (
        ISFILTERED ( 'Table'[Date].[Year] ),
       IF ( ISFILTERED ( 'Table'[Date].[Month] ), b, a ),
        SUM ( Table1[values] )
    )

3.jpg4.jpg5.png6.png

Best Regards,

Xue Ding

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

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.