Forum Discussion
Create group
Hey,
i hope i understand you correctly.
you can backed this with the IF function in Power BI
IF(logical_test>,<value_if_true>, value_if_false)
For more values combinated with If(and.....
Regards
Till
Thank you Till for the reply. I had tried to use IF, but seem not able to work out the proper function. I have no experience with DAX and have been looking around, but am probably just missing some basics to figure it out.
My attempt was:
group = IF(OR(Description[Name] = “Apple”, Description[Name] = “Banana”);”Fruit”;”Vegetable”)
Could you help me indicate what needs to be corrected?
Many thanks -
- Till8 years agoResolver II
Hey,
now it is clear:
Step One:
Make a new column in your table with this measure
Spalte = if(OR('Tabelle 1'[Name]="Apfel";'Tabelle 1'[Name]="Banane");"Fruit";"Vegetable")This works.
Kind regards
Till- Anonymous8 years agoNot applicable
Hi,
I receive an error on this, indicating that a single value for column 'name' in table 'Description' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count or sum to get a single result.
Could this be related to not being able to define a new column when working with a live connection? Would there be another way or an update to the DAX formula that could still bring the result?
Thanks,