Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
matihernandez94
Frequent Visitor

Categorizar un campo en funcion de varias lineas

Hola a todos necesito de su apoyo, tengo que hacer la categorizacion de una boleta, la cual puede traer varios productos que pueden ser de diferentes categorias, como por ejemplo farma, bycp, wellnes.  

Lo que necesito es que por ejemplo si un un boleta solo se  vendio  farma me diga farma, si compro farma y bycp diga mixto. Saben que formula se necesita para hacer eso?

 

matihernandez94_0-1645044481983.png

 

 

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

@Syndicate_Admin , Crear una nueva columna como


Nueva columna =
var _cnt = calculate(distinctCOUNT(Table[Category_COMERCIAL]), filter(Table, [ORDEN] =earlier([ORDEN]) ))
devolución
if(_cnt =1, [Category_COMERCIAL], "Mixto")

View solution in original post

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

@Syndicate_Admin , Crear una nueva columna como


Nueva columna =
var _cnt = calculate(distinctCOUNT(Table[Category_COMERCIAL]), filter(Table, [ORDEN] =earlier([ORDEN]) ))
devolución
if(_cnt =1, [Category_COMERCIAL], "Mixto")

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors