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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

All values of a column that is not in the selected date range

Hello,

I have an issue that I want to get all the values of a column that is outside the selected date range. I have a single table with eomdate, amount, category, type. It has data from Jan 2015 to till date. Now if I filter the eomdate- Jan 2019 to Aug 2019 then I want all the values that are outside this selected date range, ie from Jan 2015 to Dec 2018 and Sep 2019 to Nov 2019

I will be using a visual that will be having amount, category, type. I want it to show the data based on the above explanation. Can anyone help me with this?

1 ACCEPTED SOLUTION

Hi @Anonymous ,

Please try to change SUM funtion to MAX.

Measure =
CALCULATE (
    MAX('Table'[Segment]),
    FILTER (
        'Table',
        'Table'[Date] <= MIN ( 'Calendar'[Date] )
            || 'Table'[Date] >= MAX ( 'Calendar'[Date] )
    )
)

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. Kudos are nice too.

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

3 REPLIES 3
v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

I create a sample that you could reference.

  • Please create a new calendar table as a slicer. And there is no relationship between the tables.
Calendar = CALENDARAUTO()

2.PNG 

  • Create a measure
Measure =
CALCULATE (
    SUM ( 'Table'[ Sales] ),
    FILTER (
        'Table',
        'Table'[Date] <= MIN ( 'Calendar'[Date] )
            || 'Table'[Date] >= MAX ( 'Calendar'[Date] )
    )
)

3.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. Kudos are nice too.

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

Hello @v-xuding-msft ,

Thanks for the response. I am not working with the number column. I am working with a text column. Can you please update the formula accordingly for me?

Hi @Anonymous ,

Please try to change SUM funtion to MAX.

Measure =
CALCULATE (
    MAX('Table'[Segment]),
    FILTER (
        'Table',
        'Table'[Date] <= MIN ( 'Calendar'[Date] )
            || 'Table'[Date] >= MAX ( 'Calendar'[Date] )
    )
)

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. Kudos are nice too.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.