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
lhern_ndez
Helper I
Helper I

Measure to subtract 1 from selected value

Hello,

 

I have a very easy question but hard to me!

I have a slicer with a dropdown list where I can select only 1 value. Once I select the value, let's say 25,000, I want a measure to reduce 1 from that selected value in the slicer,

 

How can I do that?

 

With the following formula I am able to obtain the selected value for the slicer but not sure how to subtract 1, Thus I want the result of the measure to be 24,999

 

Measure = Allselected(TableColumn)

 

Thanks in advance!

 

Luis

1 ACCEPTED SOLUTION

Hi @lhern_ndez,

 

Try this one.

 

Measure = MAX(Table1[value])-1

Capture.PNG

 

Also please find the pbix attached.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

4 REPLIES 4
Vvelarde
Community Champion
Community Champion

@lhern_ndez

 

Hi, try with this:

 

Measure=SELECTEDVALUE(YourColumn) - 1


Regards

 

Victor




Lima - Peru

Hi @lhern_ndez,

 

Try this one.

 

Measure = MAX(Table1[value])-1

Capture.PNG

 

Also please find the pbix attached.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

works great, thanks!

@Vvelarde

 

Thanks for your help, it shows me an error, I believe because the value I select is repeated which is normal, how can you modify the formula considering that the column contains duplicates of the value selected?

I do not need to add up the values or anything, simply subtract - 1 of the value selected regardless if it has doubles or not,

 

Thanks!

 

Luis

 

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.