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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Rigolleto
Resolver I
Resolver I

Problems to do a rowcount

Hi,

 

I need  a way to get the max value of the column COLOR, for instance, I need to show in a grid the values as 1/4, 2/4, 3/4 and 4/4, I did create a measure but something is wrong, notice that even I did add a max it alway showing a result as 1/1, 2/2,3/3 and 4/4 instance of 1/4, 2/4, 3/4 and 4/4, I have a filter by the couln sty, this has for instance sty 100 and have 4 colors asigned, can someone tell me the best way to get the max and use it as a contant in my denominaor?

 

Thanks

 

code.png

 

mAXvALUE.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Rigolleto ,

 

I created three DAX columns :

1. This beloe DAX to give me the MAX from the color

MAX_By_category = CALCULATE(MAX(Table7[COLOR]),FILTER(Table7,[STY]=EARLIER(Table7[STY])))

2.  This below DAX column to concatenate the value with "/"

Concatenate Color with / = CONCATENATE(Table7[COLOR],"/" )

3. This below DAX to contacenate the first two above columns

Column 4 = CONCATENATE(Table7[Concatenate Color with /],Table7[MAX_By_category])

My output:

Capture34.PNG

Let me know if this works.

 

Thanks,

Tejaswi

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Rigolleto ,

 

I created three DAX columns :

1. This beloe DAX to give me the MAX from the color

MAX_By_category = CALCULATE(MAX(Table7[COLOR]),FILTER(Table7,[STY]=EARLIER(Table7[STY])))

2.  This below DAX column to concatenate the value with "/"

Concatenate Color with / = CONCATENATE(Table7[COLOR],"/" )

3. This below DAX to contacenate the first two above columns

Column 4 = CONCATENATE(Table7[Concatenate Color with /],Table7[MAX_By_category])

My output:

Capture34.PNG

Let me know if this works.

 

Thanks,

Tejaswi

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors