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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Slicer min and max selection

Hi all, 
I am using the slicer to select hours from 0 to 23, and whatever that is selected between the slicer is selected working hours and rest should be considered as not working hours, and based on these i need to do value a - b for selected hours and assumed value c - d for non selected hours

Amirtha_0-1682921241140.png

 for this when I tried MIN( table[column]) and MAX(table[column]) is not working everywhere, it is working on card and table but not on calculations
Based on the slicer selection if i try selecting in checkbox like below:

Amirtha_1-1682921370548.png

I am getting 0 and 23 as not working hour and rest all as working, since min and max is taking 0 and 23 and not the slicer selected value. 
Kindly help how to select the ranges dynamically and not 0 or 23 as min and max

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

According to your description, here are my steps you can follow as a solution.

(1) My test data is the same as yours.

(2) We can create a measure. 

 

_slicermin = 

MINX(FILTER(ALLSELECTED('Table'),'Table'[Hour]),'Table'[Hour])
_slicermax = 

MAXX(FILTER(ALLSELECTED('Table'),'Table'[Hour]),'Table'[Hour])

 

(3) Then the result is as follows.

vtangjiemsft_1-1682995757968.png

 

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

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

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

 

According to your description, here are my steps you can follow as a solution.

(1) My test data is the same as yours.

(2) We can create a measure. 

 

_slicermin = 

MINX(FILTER(ALLSELECTED('Table'),'Table'[Hour]),'Table'[Hour])
_slicermax = 

MAXX(FILTER(ALLSELECTED('Table'),'Table'[Hour]),'Table'[Hour])

 

(3) Then the result is as follows.

vtangjiemsft_1-1682995757968.png

 

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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.