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
cdawidow
Helper III
Helper III

Synthax error or did I mess up my dax formula?

I created a measure to group my customer price types (cpt) into margin groups after giving them a rank for margin contribution but I keep getting an error message displayed below.  cpt.PNG

This is the formula here, It came out perfect, essentially I am just trying to give my Customer Information [cpt] a grouping score based on their gross margin rank.  Any help would be appreciated!

 

dax.PNG

 

 

group.PNG

 

here is my new table i create dfor my margin ranking groups 

1 ACCEPTED SOLUTION
Pragati11
Super User
Super User

Hi @cdawidow ,

 

In your measure you are using comparison operators. Try converting your MIN ans MAX columns to NUMERIC data-type, currently they are TEXT.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

2 REPLIES 2
harshnathani
Community Champion
Community Champion

Hi @cdawidow ,

 

In the Rank you are comparing an integer value with MIN.

 

Change MIN and MAX to integers in Power Query.

 

Regards,

Harsh Nathani

Pragati11
Super User
Super User

Hi @cdawidow ,

 

In your measure you are using comparison operators. Try converting your MIN ans MAX columns to NUMERIC data-type, currently they are TEXT.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.