Forum Discussion
Line Level Parameters?
- Anonymous2 years ago
Hi Anonymous ,
Thanks for lbendlin reply. There is an alternative you can try, only when the data is small
Here some steps that I want to share, you can check them if they suitable for your requirement.
Here is my test data:Create three parameter
Parameter 1= GENERATESERIES(1, 2, 0.1)Parameter 2 = GENERATESERIES(1, 2, 0.1)Parameter 3 = GENERATESERIES(1, 2, 0.1)Create a measure
Parameter Value = IF( SELECTEDVALUE('Table'[Opportunity]) = "Opportunity A", SELECTEDVALUE('Table'[Value])*SELECTEDVALUE('Parameter 1'[Parameter]), IF( SELECTEDVALUE('Table'[Opportunity]) = "Opportunity B", SELECTEDVALUE('Table'[Value])*SELECTEDVALUE('Parameter 2'[Parameter]), IF( SELECTEDVALUE('Table'[Opportunity]) = "Opportunity C", SELECTEDVALUE('Table'[Value])*SELECTEDVALUE('Parameter 3'[Parameter]) ) ) )Final output
Best regards,
Albert HeIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi Anonymous ,
Thanks for lbendlin reply. There is an alternative you can try, only when the data is small
Here some steps that I want to share, you can check them if they suitable for your requirement.
Here is my test data:
Create three parameter
Parameter 1= GENERATESERIES(1, 2, 0.1)Parameter 2 = GENERATESERIES(1, 2, 0.1)Parameter 3 = GENERATESERIES(1, 2, 0.1)
Create a measure
Parameter Value =
IF(
SELECTEDVALUE('Table'[Opportunity]) = "Opportunity A",
SELECTEDVALUE('Table'[Value])*SELECTEDVALUE('Parameter 1'[Parameter]),
IF(
SELECTEDVALUE('Table'[Opportunity]) = "Opportunity B",
SELECTEDVALUE('Table'[Value])*SELECTEDVALUE('Parameter 2'[Parameter]),
IF(
SELECTEDVALUE('Table'[Opportunity]) = "Opportunity C",
SELECTEDVALUE('Table'[Value])*SELECTEDVALUE('Parameter 3'[Parameter])
)
)
)
Final output
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
- Anonymous2 years agoNot applicable
Thanks, I think that this would work for a list of a fixed length, but that isn't personally my use case.
I experimented with creating a table of all of the what-if scenarios by crossjoining a series with the list of opportunites, but ultimately was unable to find a way to make a slicer off of that which I found to be palatable to users.
CustomValuePerOpportunity = CROSSJOIN(GENERATESERIES(0,1,0.1), opportunities)