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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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