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
azeemkhalipha
Regular Visitor

DAX error

1.JPG2.JPG3.JPG

 

 

 

I have used DAX code to use UNICHAR for showing Loss in financial data, but I am getting the above error. Please help (Note- I am using financial data by Power BI desktop)

 

 

@needhelp 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@azeemkhalipha , As I suggested above, I created it as a measure and that seems to be working. Please find the file attached after signature.

View solution in original post

6 REPLIES 6
amitchandak
Super User
Super User

@azeemkhalipha , As I suggested above, I created it as a measure and that seems to be working. Please find the file attached after signature.

amitchandak
Super User
Super User

@azeemkhalipha ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

The "Enterprise" row is showing twice when I add the DAX function. I want it to be in one row only with "red" remark

PhilipTreacy
Super User
Super User

Hi @azeemkhalipha 

Download sample PBIX with this code and visual

As a Measure use this

 

Remark = 

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

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

 

Capture.PNG

 

 

 

Regards

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
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.

Top Solution Authors