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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
sugra
Helper I
Helper I

Can a report parameter be used to evaluate a column expression?

Hi all,

 

I want to use the value from a what-if report parameter  to form part of an If analysis column in another table. The steps I used are:

 

1. Create the parameter; a Multiplier table is formed with Multiplier Value column.

2. Created a column in another table. Use a formala such as If (X > Multiplier[Multiplier Value]....

 

On its own, the parameter changes values. However within the column, only the parameter's default value is recognized.

Is there a work around to attain this?

2 ACCEPTED SOLUTIONS
Greg_Deckler
Super User
Super User

Columns are not dynamic, they are calculated at the time of data load. You need to use a measure.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

v-juanli-msft
Community Support
Community Support

Hi @sugra 

Yes, please create a measure instead.

https://docs.microsoft.com/en-us/power-bi/desktop-what-if

 

Best Regards

Maggie

View solution in original post

3 REPLIES 3
sugra
Helper I
Helper I

Thanks Maggie and Greg, 

 

I have a follow up question. 

 

I tried to change the column to a measure, but it did not accept it. The formula I am trying to get working is for values in each row to be compared to the parameter and be given a category.

 

Parameter  Multiplier[Multiplier Value]

 

 

Measure = IF([Field 1] > Multiplier[Multiplier Value], "A", IF ([Field 2] = Multiplier[Multiplier Value], "B", IF([Field 1] < Multiplier[Multiplier Value])))

 

It works in the Column but not in a Measure.. ( I assume because measure is expected more of a calculation than evaluation). 

 

Is there an alternative way to a achieve this?

v-juanli-msft
Community Support
Community Support

Hi @sugra 

Yes, please create a measure instead.

https://docs.microsoft.com/en-us/power-bi/desktop-what-if

 

Best Regards

Maggie

Greg_Deckler
Super User
Super User

Columns are not dynamic, they are calculated at the time of data load. You need to use a measure.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors