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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
MarshalSK
Resolver I
Resolver I

How to get selected from Range filter

Hi Folks, Need help to get user entered value from range filter

MarshalSK_0-1710916448717.png

 

 

 

 

2 ACCEPTED SOLUTIONS
Uzi2019
Super User
Super User

Hi @MarshalSK 
You have to create seperte measures for Min and Max.

Min = CALCULATE(MIN(Table[Clicks]), ALLSELECTED(Table))

Max = CALCULATE(Max(Table[Clicks]), ALLSELECTED(Table))

Uzi2019_0-1710919156214.png

and you can switch value to rows instead of columns. by changing the settinf of Values > Option>

Uzi2019_1-1710919238046.png

 

 

I hope I naswered your question.




Don't forget to give thumbs up and accept this as a solution if it helped you!!!

View solution in original post

Anonymous
Not applicable

Hi @Uzi2019 ,Thanks for the quick reply, I'll add to it.

Hi @MarshalSK ,

The table data are as follows:

vzhouwenmsft_0-1711010261438.png

Please follow these steps:
1. Use the following DAX expression to create a table

Table 2 = GENERATESERIES(1,100,1)

2. Relate the two tables

vzhouwenmsft_1-1711010303085.png

3. Use the following DAX expression to create a measure named ‘Max’

Max = SELECTEDVALUE('Table 2'[Value],MAXX('Table 2',[Value]))

4. Use the following DAX expression to create a measure ‘Min’

Min = SELECTEDVALUE('Table 2'[Value],MINX('Table 2',[Value]))

5. Final output

vzhouwenmsft_2-1711010368306.png

vzhouwenmsft_3-1711010378855.png

vzhouwenmsft_4-1711010392145.png


Best Regards,
Wenbin Zhou
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
Anonymous
Not applicable

Hi @Uzi2019 ,Thanks for the quick reply, I'll add to it.

Hi @MarshalSK ,

The table data are as follows:

vzhouwenmsft_0-1711010261438.png

Please follow these steps:
1. Use the following DAX expression to create a table

Table 2 = GENERATESERIES(1,100,1)

2. Relate the two tables

vzhouwenmsft_1-1711010303085.png

3. Use the following DAX expression to create a measure named ‘Max’

Max = SELECTEDVALUE('Table 2'[Value],MAXX('Table 2',[Value]))

4. Use the following DAX expression to create a measure ‘Min’

Min = SELECTEDVALUE('Table 2'[Value],MINX('Table 2',[Value]))

5. Final output

vzhouwenmsft_2-1711010368306.png

vzhouwenmsft_3-1711010378855.png

vzhouwenmsft_4-1711010392145.png


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

Uzi2019
Super User
Super User

Hi @MarshalSK 
You have to create seperte measures for Min and Max.

Min = CALCULATE(MIN(Table[Clicks]), ALLSELECTED(Table))

Max = CALCULATE(Max(Table[Clicks]), ALLSELECTED(Table))

Uzi2019_0-1710919156214.png

and you can switch value to rows instead of columns. by changing the settinf of Values > Option>

Uzi2019_1-1710919238046.png

 

 

I hope I naswered your question.




Don't forget to give thumbs up and accept this as a solution if it helped you!!!

@Uzi2019  Thanks but above result will not satisfy the requirement, can you please make use of the sample data which i shared.

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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