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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
azeemkhalipha
Regular Visitor

Error de DAX

1.JPG2.JPG3.JPG

He utilizado el código DAX para usar UNICHAR para mostrar la pérdida en los datos financieros, pero estoy recibiendo el error anterior. Ayuda (Nota- Estoy usando datos financieros de Power BI Desktop)

@needhelp

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@azeemkhalipha , Como sugerí anteriormente, lo creé como una medida y que parece estar funcionando. Por favor, encuentre el archivo adjunto después de la firma.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

6 REPLIES 6
amitchandak
Super User
Super User

@azeemkhalipha , Como sugerí anteriormente, lo creé como una medida y que parece estar funcionando. Por favor, encuentre el archivo adjunto después de la firma.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
amitchandak
Super User
Super User

@azeemkhalipha ,¿Puede compartir datos de ejemplo y salida de ejemplo en formato de tabla? O una muestra de pbix después de eliminar datos confidenciales.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
amitchandak
Super User
Super User

@azeemkhalipha , Error no está claro.

Pero en caso de que esté creando una medida de color

si debería si

if(sum(financials[profit]) <-0 , "Red", "Green")

Refiera estos blogs

https://exceleratorbi.com.au/conditional-formatting-using-icons-in-power-bi/
https://community.powerbi.com/t5/Desktop/FORMAT-icon-set-for-use-in-a-data-card/td-p/811692

https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

La fila "Empresa" se muestra dos veces cuando agredo la función DAX. Quiero que sea en una fila sólo con el comentario "rojo"

PhilipTreacy
Super User
Super User

Allí @azeemkhalipha

Descargue PBIX de ejemplo con este código y visual

Como medida, utilice este

Remark = 

VAR _Red = UNICHAR(128308)
VAR _Green = UNICHAR(128994)

RETURN
IF(MAX('Financials'[Profit]) <= 0 , _Red, _Green)

Capture.PNG

saludos

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.