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! Learn more

Reply
Pandetbaby
Frequent Visitor

I want to find the % of different categories

Hey!

I have made a column that have split the total number of rows into either Red or Green based on the value. 

 

Green / Red is a column with the function: Green/Red = IF ( Row >= 50 , "Green", "Red")

 

Then to get the Number of columns: Number of Green/Red = Count ( Green/Red )

 

and lastly

 

Function I am attempting is = SUM( Row )  / ( Number of Green/Red)

 

I now want to calculate what % of rows falls into each - how do I do this?

Thank you!

1 REPLY 1
Anonymous
Not applicable

@Pandetbaby If you are looking for percentage of each category in total Please use below measure

Measure = 
VAR _category = CALCULATE(SUM('Table'[Sales]),ALLEXCEPT('Table','Table'[GreenRed]))
VAR _total = CALCULATE(SUM('Table'[Sales]),ALL('Table'))
RETURN DIVIDE(_category,_total,0)

 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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