The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Is there a way I can pass a list of values from a column to group certain values?
For instance, if I have the column Produtcs, and I want to create a new column based on the produtcs, so, "BMW","Honda","Ferrari"will be put as Car, and so on.
In another BI tool, i just put an IF statemant and pass the list of values to be put in the group. So once I get into my matrix visual, it will have Car, and below it, the cars' names, the prices, quantity...
Any hep will be more than welcome.
Thank you!
Hi @v-sihou-msft, I ended up doing that, but unfortunately, it won allow me to put elements inside a subgroup
, for inatance, to put the cars inside BMW, Ferrari, etc
Cars
BMW
bmw1
bmw2
Ferrari
ferrari1
ferrari2
Others
@Anonymous
Hi, you can add calculated column:
Group = SWITCH(TRUE(),Table1[Product] IN {"Honda";"BMW";"Ferrari"},"Car","Other")
Regards
Victor
Peru
User | Count |
---|---|
59 | |
55 | |
53 | |
49 | |
30 |
User | Count |
---|---|
177 | |
88 | |
70 | |
48 | |
48 |