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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Discovery
Frequent Visitor

max selected value of slicer and remove filters

Good afternoon,

 

I had this working yesterday, and today I cannot seem to find my calculation. It seems simple, but not working.

 

I am trying to capture the max and min date of a date slicer regardless of another filter chosen in the table. The inventory slicer is coming from the same filter as the date, but I want to disregard that filter, and have a static variable for first and last date of the date range.


There are no other filters selected  to affect this.. 

 

I did MinDateSelected

CALCULATE(
Min('Total Inventory Received'[Date] ),
ALLSELECTED( 'Total Inventory Received'[Date] ),all('Total Inventory Received'[InventoryID]))
 
but it is not disregarding the inventory filter
1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community Support

Hi @Discovery ,

 

Could you please share your example data? Here is the example I created based on your formula, the measure returns the correct value: 1/10/2021, which corresponds to an InventoryID of C and is not affected by the InventoryID slicer.

 

vkkfmsft_0-1642473323358.pngvkkfmsft_1-1642473351897.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz

 

View solution in original post

2 REPLIES 2
v-kkf-msft
Community Support
Community Support

Hi @Discovery ,

 

Could you please share your example data? Here is the example I created based on your formula, the measure returns the correct value: 1/10/2021, which corresponds to an InventoryID of C and is not affected by the InventoryID slicer.

 

vkkfmsft_0-1642473323358.pngvkkfmsft_1-1642473351897.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz

 

VahidDM
Super User
Super User

HI @Discovery 

 

Try this:
MIN = 

CALCULATE (
    MIN ( 'Total Inventory Received'[Date] ),
    ALLEXCEPT ( 'Total Inventory Received', 'Total Inventory Received'[Date] )
)
 
 
MAX = 
CALCULATE (
    MAX( 'Total Inventory Received'[Date] ),
    ALLEXCEPT ( 'Total Inventory Received', 'Total Inventory Received'[Date] )
)
 
 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/


 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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