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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
afrutos
Resolver I
Resolver I

clasiffy in more than one field

Hello good afternoon, I have a question that I can't solve.

Can I classify a field in 3 or 2 classifications at the same time?
Let me explain:

I have a field that returns me the status of the invoice taking into account the credit note; if an invoice is collected and has pending to execute the credit note, I would like to classify at the same time in collected and in pdte of collection,
can this be done?

afrutos_0-1652972755238.png

 Thanks in advanced

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @afrutos 

 

You can first use Power Query Editor to transform the raw data into below structure:

vjingzhang_0-1653297583540.png

 

Then use a Matrix visual to display the result. 

vjingzhang_1-1653297656736.png

 

Transformation steps are:

1. Add three custom columns with Text.Contains function to decide whether an invoice belongs to a classification. 

= Text.Contains([Etiquetas de fila],"FACTURA COBRADA")

= Text.Contains([Etiquetas de fila],"ABONO COBRADO") or Text.Contains([Etiquetas de fila],"ABONO EJECUTADO")

= Text.Contains([Etiquetas de fila],"NO COBRADO") or Text.Contains([Etiquetas de fila],"NO EJECUTADO")

 

2. Unpivot the above three columns.

 

3. Change the logic Value column to Text type. Replace true/false values with the values you want to display. 

 

I have attached the sample file at bottom. You can download it to find details. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @afrutos 

 

You can first use Power Query Editor to transform the raw data into below structure:

vjingzhang_0-1653297583540.png

 

Then use a Matrix visual to display the result. 

vjingzhang_1-1653297656736.png

 

Transformation steps are:

1. Add three custom columns with Text.Contains function to decide whether an invoice belongs to a classification. 

= Text.Contains([Etiquetas de fila],"FACTURA COBRADA")

= Text.Contains([Etiquetas de fila],"ABONO COBRADO") or Text.Contains([Etiquetas de fila],"ABONO EJECUTADO")

= Text.Contains([Etiquetas de fila],"NO COBRADO") or Text.Contains([Etiquetas de fila],"NO EJECUTADO")

 

2. Unpivot the above three columns.

 

3. Change the logic Value column to Text type. Replace true/false values with the values you want to display. 

 

I have attached the sample file at bottom. You can download it to find details. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Finally it works correctly, thanks!

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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