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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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