Forum Discussion
Grouping by Column Contains?
- 6 years ago
chq , Please find the link to pbix. Minor chnage in column formula
https://www.dropbox.com/s/ghbeh6z55erxdtd/GroupTeam.pbix?dl=0
chq , create a new column like
New column =
var _1 = countX(filter(table,[Transaction #]=earlier([Transaction #]) && [Type]="Type"),[Transaction #])
return
if(isblank(_1) || _1 =0,[Type],"Long Term")
- chq6 years ago
Helper II
@amitchandak Would this be able to apply to multiple types, for example if it doesn't contain Long or Baseball but does contain Theatre then it equals Theatre?
- amitchandak6 years ago
Super User
I have Taken count of long , you have one more countx and create logic
or use in
[Type]="Long"
[Type]="Basketball"
or
[Type] in{"Long","Basketball"}
- chq6 years ago
Helper II
amitchandak I am not sure I understand can you give me an example formula with that logic also applied? Thanks
- amitchandak6 years ago
Super User
chq , Please find the link to pbix. Minor chnage in column formula
https://www.dropbox.com/s/ghbeh6z55erxdtd/GroupTeam.pbix?dl=0