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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
rokesh18
New Member

Creating a Dynamic Column based on 'What if' Parameters

Hi,

 

I created a Custom Column with the following formula.

 

Type = IF(Column A >= Parameter1,
                 IF(Column B >=Parameter2,"Star","Question"),
                 IF(Column B >=Parameter2,"Cow","Pet")
                )
The formula worked initially and the Type column was populated with values based on the condition.
But, when I changed the Parameter values, the "Type" Column contents were not getting refreshed.
 
Is this a limitation in Power BI, or am I doing something wrong? I'd appreciate it if somebody could help with a turnaround. 
1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

There is no such thing as a dynamic column.  Calculated columns cannot be created through measures. They are only calculated once, during dataset refresh*.

 

* one small exception is when you have a composite data model with dataset as  a source and a local copy of the model but even then it is limited to in-row calculations.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

There is no such thing as a dynamic column.  Calculated columns cannot be created through measures. They are only calculated once, during dataset refresh*.

 

* one small exception is when you have a composite data model with dataset as  a source and a local copy of the model but even then it is limited to in-row calculations.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.