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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Krijgersss
Helper II
Helper II

need some help with a measure error

hello does anybody hace the right measure for me so this measure works it gives me now a error 

Meting 2 = CALCULATE(DISTINCTCOUNT('public transaction_lines'[entry_number]), ISBLANK('public transaction_lines'[cost_center_description]),'public glaccount_classification_mappings'[classification_description] - "Cost of goods sold")
 
see screenshot for error 
Krijgersss_0-1716979360881.png

 

3 REPLIES 3
DataNinja777
Super User
Super User

Hi @Krijgersss 

What about swapping "-" with "=" in your dax formula like yellow highlighted below:

DataNinja777_0-1716985694516.png

Best regards,

the - is a = 7so thats not the problem 

Anonymous
Not applicable

@DataNinja777  Thanks for your contribution on this thread.

Hi @Krijgersss ,

Upon analysis of the error message, it appears to be indicative of a data type conversion issue. As recommended by @DataNinja777 , it would be beneficial to replace the minus sign(-) with an equal sign(=). It’s important to note that both ‘public glaccount_classification_mappings’[classification_description] and “Cost of goods sold” are Text types, hence the use of a minus sign between them is not suitable

 

However, from your latest reply, the minus sign over here would have been an equal sign. That should return the result you want. If it still reports an error, could you please provide the following information:
1. What is the Data type  of the field 'public transaction_lines'[cost_center_description]  and 'public glaccount_classification_mappings'[classification_description] ?

2. What is the error message?
3. Please provide some raw data in your table 'Revenue' (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It would be helpful to find out the solution. You can refer the following link to share the required info:

How to provide sample data in the Power BI Forum

 

Best Regards

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.