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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Beniya_Sam_14
Frequent Visitor

Sales % for Brand and Store

Hi guys,

The below table is the one am trying to achieve. I have created a measure to find the sales % but I want that in a column so that it help me to create category based on that column.

 

Measure:  Sales % = SUM('sales'[total_sales])/CALCULATE(SUM('sales'[total_sales]),ALLSELECTED('sales'[BRAND_NAME]))
 
How can i achieve same values using column?? not measure
Sales %.png
Thank you
1 REPLY 1
marcosvin
Resolver II
Resolver II

Hello!

 

To create the categories on numerical values and store them as a column, I believe you need to calculate these percentage values of the total in the transformation step, within PowerQuery, to then create a conditional column saying which percentage each category fits. So when the data is updated, Powerquery will recalculate the results and redefine the ranges. In the following link there is an example of how to do this calculation in PowerQuery: How to calculate Power Query Percent of total or category (exceloffthegrid.com)

 

Just check if the performance will be satisfactory because it can be a big calculation depending on the number of lines.

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.