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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Calculate the percentage individually of a rating value

Hi,

 

I have a table with preference values on the part of consumers. 
I have a [ColorJarvalue] and [ColorJar_des] field:
(ColorJarvalue)1 = much too light (ColorJar_des) , 2 = too light, 3 = Just About Right, 4 = Too Dark, 5 = Much too dark, and i got some results.

And I wanted the following chart (for example):

I want to isolate by brand, the values ​​collected by percentage (100%).

I tried this:

DIVIDE(COUNTA('consumer'[ColorJar]), CACULATE(SUM('consumer'[ColorJar]), ALLEXCEPT(brands,brands[Brand])),0)


Best regards. 

 
1 ACCEPTED SOLUTION
GilbertQ
Super User
Super User

Hi there

Does the 100% Stacked Bar chart visual not work?

You could have the measure and have the Brands on the Axis and Colors on the Legend?




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

View solution in original post

4 REPLIES 4
v-yuta-msft
Community Support
Community Support

@Anonymous,

 


I have a table with preference values on the part of consumers. 
I have a [ColorJarvalue] and [ColorJar_des] field:
(ColorJarvalue)1 = much too light (ColorJar_des) , 2 = too light, 3 = Just About Right, 4 = Too Dark, 5 = Much too dark, and i got some results.


Which kind if value in field [ColorJarvalue] and [ColorJar_des]? Could you share some sample data and clarify more details about your requirement?

 

Regards,

Jimmy Tao

GilbertQ
Super User
Super User

Hi there

Does the 100% Stacked Bar chart visual not work?

You could have the measure and have the Brands on the Axis and Colors on the Legend?




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Anonymous
Not applicable

@GilbertQThanks !! resulted with 100% Stacked Bar

Hi @Anonymous

 

Awesome, glad you got it working!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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