Forum Discussion
Convert Column to Measure...
Greetings -
I am trying to replace an excel sheet w/ "conditional formating" w/ PowerBI...
I know that you can only do "conditional formatting" in PowerBi w/ columns that are 'measures' - but in my scenario, the values in my data are already calculated, I just need to add the visual formating....
Example -
In excel, i have this...
But in PowerBi, I cannot achive becasue 'score' is not a measure...
So, my thought was to create a new 'measure column' so that I can conditional format it....
Something like 'NewMeasureColumn = 'myTable'[score] * 1' - that way the value never changes....but I cannot figure this out....
Is something like this possible?
Has anyone figured out a simple way to convert a value into a measure so you can apply conditional formating?
Thanks!
8 Replies
- ihayes916Frequent Visitor
MFelix - thank you for your reply.
Unless I am missing something painfully obvious, you can only apply conditional formating to 'Measures' or 'Aggregated Values', right?
I have column, 'score', that is a number...but when I select that column...I cannot apply any conditional formating...But...if i do some type of aggregate function (SUM) then I can apply conditional formating...but this messes up my numbers...
Thoughts?
- MFelixSuper User
Hi ihayes916,
In your explanation I didn't understood that your data was in a non aggregated way, if you use a measure since it's based on context you also need to have a aggregator. Is your data one to one? Meaning that your ID column in the table correspond only to one value? you could aggregate the values with a max or a average and then apply the conditional formatting.
Without any further information about your data is not easy to give you a solution of a measure, if you can give some sample data and the expected result I cna give you a better answer.
Regards,
MFelix
- v-jiascu-msftMicrosoft Employee
Hi ihayes916,
Could you please mark the proper answer as solution or share the solution if it's convenient for you? That will be a big help to the others.
Best Regards!
Dale