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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Assign value based on slicer Range selection

HI Team,

 

We came across one requirement in which we need one column(Can be custom Column) for which value should be populated based on slicer range selection(Dynamically).

eg: 

 

   Dynamic Value/Custom column
IDRange ValueFlag
1001124N
1002212N
1003345N
1004434Y
1005523Y
1006648Y

 

Now Range is slicer from where based on range selection Flag column should assign Y or N dynamically.  if range is falling between selection then Y else N. 

 

Slicer range selected from 4 to 6 hence Flag column populated value as Y for the same. 

 

We have tried with ISfiltered DAX function but the problem is , it is not working if we are creating this as custom column . 

 

Thanks

 

 

 

 

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@Anonymous 

You need to create a measure, Columns will not work as they are not affected by the slicer filters.

=IF ( MAX(TABLE[RANGE] >= MIN(SLICER[COLUMN] && MAX(TABLE[RANGE] <= MAX(SLICER[COLUMN], "Y", "N") 

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn






Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

2 REPLIES 2
Fowmy
Super User
Super User

@Anonymous 

You need to create a measure, Columns will not work as they are not affected by the slicer filters.

=IF ( MAX(TABLE[RANGE] >= MIN(SLICER[COLUMN] && MAX(TABLE[RANGE] <= MAX(SLICER[COLUMN], "Y", "N") 

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn






Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

HI @Fowmy 

 

Thanks for your response on the query. 

 

We would like to know if we want to achieve interection with other visuals then This measure is not interacting. 

 

Is there any way to achieve interaction? 

 

   Dynamic Value/Custom column
IDRange ValueFlag
1001124N
1002212N
1003345N
1004434Y
1005523Y
1006648Y

 

Eg: We have enabled relationship and visual interaction as well but after adding this Measure in visual , interaction is not happening. 

 

In above example count Flag (Y) is 3 so on click on the same it should interact with others to show only rows with Flag = Y in table . Could you please let us know Is there any way to achieve this?

 

Thanks in Advance! 

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Top Solution Authors