Skip to main content

Power BI

New

Dynamic calculated column

Vote (32) Share
Greg Galloway's profile image

Greg Galloway on 30 Jun 2017 02:23:23

Calculated columns are computed at model load time. I would like to request a feature that lets you mark a calculated column to be dynamically evaluated in every query. For example, I may have a calculated column which categorizes a product as "Low Sales Volume" vs. "High Sales Volume". But that calculated column doesn't change depending on the date range selected by a user in a slicer. If I could mark that calculated column as "dynamic" then I could recalculate the categorization in the context of user slicer selections.

Comments (9)
Greg Galloway's profile image Profile Picture

5322a1c0 66ab-4936-8558-fade89446447 on 05 Jul 2020 23:48:41

RE: Dynamic calculated column

This would also give us the ability to create a TOP N list with an "Other" category for anything not in the top n list.

Greg Galloway's profile image Profile Picture

1af18fc3 c51c-4422-8305-c29424ac9a43 on 05 Jul 2020 23:41:08

RE: Dynamic calculated column

Why couldn't you use a measure for this?
IF(HASONEVALUE(item_table[item]),
FN () , //Insert high/low function here
BLANK ()
)

Greg Galloway's profile image Profile Picture

5d757ede 7d17-4bac-8281-93ec959e683f on 05 Jul 2020 23:40:53

RE: Dynamic calculated column

I guess calculated columns are meant to be static and independent of filter context. If you want a dynamic calculation based on filter context, a measure might be more suitable?

Greg Galloway's profile image Profile Picture

a985cc9c 4137-4958-a5b5-99ffea9fa148 on 05 Jul 2020 23:38:19

RE: Dynamic calculated column

This is a very basic feature. I cannot have a truly dynamic dashboard without this very basic basic feature. I suppose MS is not even considering this given that the feature of input data after more than 1k vote is still not there.
I thought MS changed a bit but Tableau will be always better. Sure you got right the management of row context but the tool is simply not good for dynamic dashboards. This is simply ridiculous!!!!!

Greg Galloway's profile image Profile Picture

505bff53 748e-4f08-98b3-5f92ef1bfc27 on 05 Jul 2020 23:32:11

RE: Dynamic calculated column

This is a VERY basic feature in Tableau. This NEEDS to be a feature in Power Bi!

Greg Galloway's profile image Profile Picture

766048b9 39a9-44e3-aff6-73db920cb71e on 05 Jul 2020 23:23:47

RE: Dynamic calculated column

I can think of how this could be used to make certain visuals very dynamic. For example, if you click on a row in a matrix, the waterfall chart will show you the activity at the next level down from what you clicked on.

Greg Galloway's profile image Profile Picture

3cd9e135 74ed-4679-90eb-e58a06cf58cd on 05 Jul 2020 23:17:16

RE: Dynamic calculated column

yup, especially with what-if measures, we need the ability to make the calculated columns dynamic with the what-if measures, very useful for forecasting scenarios

Greg Galloway's profile image Profile Picture

a9f95f54 6d1c-4339-a23b-5b0cf8a98a82 on 05 Jul 2020 23:03:29

RE: Dynamic calculated column

Agreed, this is necessary.
Our use case is calculation of a histogram that changes dynamically when you use slicers to filter the data. The way to do a histogram is to have a table of 'buckets' with a calculated column that counts the rows in your base data that fall into each bucket. Because this is calculated only at data load time, you cannot then filter the base data and have the histogram reflect this.

Greg Galloway's profile image Profile Picture

b8be2910 3ef1-419a-a505-e536af80837c on 05 Jul 2020 23:03:09

RE: Dynamic calculated column

This is a necessity. We need to allow the user the ability to change the data in a calculated column based on a parameter selection on the dashboard. We are calculating forecasted values at the row level for components based on a termination future date. We need to give the user a "what if" ability to change the termination date and see what the new calculated value will be for the specific component. This must be accomplished at a row level, which means that the column needs to be recalculated using the new date. Unfortunately this can't be accomplished currently with Power BI.

I realize that this will have an impact on system speed but the user would definitely prefer a slow response vs. no response.