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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.