cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

"what if parameters" in a column

Hello,

Can different "what if parameters" be arranged in a column , to have dynamic values

 

Thanks,

 

Yogi

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: "what if parameters" in a column

Hi @yogeshmaney ,

 

We can try to create a calculated table and a measure to meet your requirement:

 

Calculated table:

ParameterName = {"Item1","Item2","Item3"}

 

Measure:

ParameterValue = SWITCH(SELECTEDVALUE('ParameterName'[Value]),"Item1",[Item1 Value],"Item2",[Item2 Value],"Item3",[Item3 Value])

 

1.jpg

 


If it doesn't meet your requirement, kindly share your sample data and expected result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.



Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
Highlighted
Super User IX
Super User IX

Re: "what if parameters" in a column

The information you have provided is not making the problem clear to me. Can you please explain with an example.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
My Recent Blog -Week is not so Weak Connect on Linkedin

Proud to be a Super User!

Highlighted
Helper I
Helper I

Re: "what if parameters" in a column

Item Parameter Value
Item AParameter 1
Item BParamenter 2
Item CParameter
  

 

Have Created 3 What if parameters, Now Want to arrange /list them in a column , so to have dynamic values for Items.

How can we do this

Thanks,

Highlighted
Community Support
Community Support

Re: "what if parameters" in a column

Hi @yogeshmaney ,

 

We can try to create a calculated table and a measure to meet your requirement:

 

Calculated table:

ParameterName = {"Item1","Item2","Item3"}

 

Measure:

ParameterValue = SWITCH(SELECTEDVALUE('ParameterName'[Value]),"Item1",[Item1 Value],"Item2",[Item2 Value],"Item3",[Item3 Value])

 

1.jpg

 


If it doesn't meet your requirement, kindly share your sample data and expected result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.



Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Helper I
Helper I

Re: "what if parameters" in a column

Hello ,

Its nice but do we get Total .  

But its awesome.

 

Thanks,

 

Yogi

Highlighted
Community Support
Community Support

Re: "what if parameters" in a column

Hi @yogeshmaney ,

 

We can use the following measure to correct total value:

 

ParameterValue = SUMX(DISTINCT('ParameterName'[Value]),SWITCH([Value],"Item1",[Item1 Value],"Item2",[Item2 Value],"Item3",[Item3 Value]))

 

1.jpg


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Helper I
Helper I

Re: "what if parameters" in a column

Simply Awesome ! No words !

Helpful resources

Announcements
Meet the 2020 Season 2 Power BI Super Users!

Meet the 2020 Season 2 Power BI Super Users!

Find out who's part of the program this season, and welcome the new Super Users.

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

July 2020 Community Highlights

July 2020 Community Highlights

Learn about the exciting things that happened in July.

Featured Data Story of The Month

Featured Data Story of The Month

All Data Stories Gallery contributions are reviewed for each month. We select a contribution and feature the community member the following month.

Power BI Dev Camp - Developing with .NET Core

Power BI Dev Camp - Developing with .NET Core

Learn how to develop custom web applications for Power BI using .NET Core 3.1 and .NET 5.

Top Solution Authors
Top Kudoed Authors