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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Mahmed1
Helper IV
Helper IV

Dax selected value not giving right result

Hi

 

I have a parameter set up that allows me to put values from 1 to 1000

 

i have changed the parameter slicer to dropdown and greater than or equal to see if it works

 

all i am trying to do is do a simple calc that takes the total score and deducts the parameter value 

but the result is either showing blank

 

so my first question is hoe doni retrieve the value of the parameter selected value?

 

i have tried this simple formula

 

MyScore = [Total_Score] - Parameter(Parameter_Value] with no luck at all

9 REPLIES 9
Mahmed1
Helper IV
Helper IV

Hi @Fowmy 

 

nothing seems to work with the parameter value

 

either 0 or 1m is returned no matter how i change slicer

 

ive tried different variations 

 

please see snapshots of what ive tried

 

IMG_5151.jpeg

 

IMG_5150.jpeg

IMG_5149.jpeg

IMG_5148.jpeg

IMG_5147.jpeg

@Mahmed1 

First you need to set the Style to Single Value if you need to get the selectedvalue. 

Fowmy_0-1702706724081.png

 




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

Hi 

 

i dont see that option unfortunately- thats what im looking for

 

am i missing something 

@Mahmed1 

Make sure you crated the Parameter using the option as follows, otherwise, you will not get that Single Value option:

Fowmy_0-1702723776638.png

 

 

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

@Fowmy 

hi i managed to figure the issue

 

it was because i entered into a slicer rather than the parameter slicer

 

My set up is on a normal slicer which dont have the single value option

 

Is there anyway at all i can retrieve the value that is input in to the great >= box (my slicer is the greater than or = to option)

Hey that's exactly what i did using numeric

 

min value = 1

max value = 1000000

increment = 1

default = 1

 

added slicer

 

but when i go to change slicer

i get every option like tile, dropdown, between, greater than etc but not the single value selection which is weird

Mahmed1
Helper IV
Helper IV

hey ill give this a go

 

does of the paramater is a greater than or equal to slicer which can be between 1 and 10000

 

will this still work as max potential value is 10000 not the actual value?

@Mahmed1 

You can get the minimum value using

MIN( Parameter(Parameter_Value] )
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

Fowmy
Super User
Super User

@Mahmed1 

Try this :

MyScore = [Total_Score] - MAX( Parameter(Parameter_Value] )
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

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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