The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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
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
@Mahmed1
First you need to set the Style to Single Value if you need to get the selectedvalue.
⭕ 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:
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
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
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] )
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Mahmed1
Try this :
MyScore = [Total_Score] - MAX( Parameter(Parameter_Value] )
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
User | Count |
---|---|
25 | |
10 | |
8 | |
7 | |
6 |
User | Count |
---|---|
32 | |
12 | |
10 | |
10 | |
9 |