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
kokoro_1202
Helper I
Helper I

countrow with condition and percentage

hi all,

I have a monthly sale data, with customer member type and a member database.

For example, in Jan 2020 data, there are 9 purchase by VIP(member type 1).

There are a total of 28 VIP in the database. percentage would be 32%

How can i do a visual with percentage of these 3 type of member (VIP, Member & Others).

 

I tried using countrow but got stuck along the way, can anyone help?

Attached is the sample file.

https://gofile.io/d/Ldh1AZ

 

Thank you

 

1 ACCEPTED SOLUTION

@kokoro_1202 

add a category column in the new table

1.PNG

replace with that category column 

2.PNG

for the chart, what's the expected output? could you pls create the  chart in excel first?





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

Proud to be a Super User!




View solution in original post

3 REPLIES 3
ryan_mayu
Super User
Super User

@kokoro_1202 

pls see the atatchment below





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

Proud to be a Super User!




@ryan_mayu 

hihi, thanks for the sharing.

I tried to use category instead of memberType, but the percent look wrong, is there a way to show it?

 

Thank you

@kokoro_1202 

add a category column in the new table

1.PNG

replace with that category column 

2.PNG

for the chart, what's the expected output? could you pls create the  chart in excel first?





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

Proud to be a Super User!




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.