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

Dvision with mutiple values

Dear Team

I have below table with two columns where first column has various key items and second field has its respective values.

I want to create measure by adding another column /field (% of Sales) in this table which gives me % of each item against one key item value which is "Sales" here

For explanation purpse I have give answers for few key items in column 3 (% of Sales) but I need to know to develop measure which can give me this kind of result in one column

 

Key ItemsValues% of Sales
Sales5000100
Cost of Sales300060
Gross Profit200040
Admin Cost500 
Marketing Cost700 
Depreciation300 
Net Pofit  

 

 
1 ACCEPTED SOLUTION
v-lionel-msft
Community Support
Community Support

Hi @GGDAC ,

 

Try this:

1. Creating a calculated column

 

Sales = 
CALCULATE(
    MAX(Sheet1[Values]),
    FILTER(
        Sheet1, 
        Sheet1[Key Items] = "Sales"
    )
)

 

2. Creating a measure

 

Measure = 
DIVIDE(
    MAX(Sheet1[Values]),
    MAX(Sheet1[Sales])
)

 

lll1.PNG

 

If the value of the “Sales“ is always maximum, you can also do like this:

Measure 2 = 
DIVIDE(
    MAX(Sheet1[Values]),
    CALCULATE(
        MAX(Sheet1[Values]),
        ALL(Sheet1)
    )
)

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

Try these measures

Measure = SUM(Data[Values])
Measure 2 = [Measure]/CALCULATE([Measure],Data[Key Items]="Sales")

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-lionel-msft
Community Support
Community Support

Hi @GGDAC ,

 

Try this:

1. Creating a calculated column

 

Sales = 
CALCULATE(
    MAX(Sheet1[Values]),
    FILTER(
        Sheet1, 
        Sheet1[Key Items] = "Sales"
    )
)

 

2. Creating a measure

 

Measure = 
DIVIDE(
    MAX(Sheet1[Values]),
    MAX(Sheet1[Sales])
)

 

lll1.PNG

 

If the value of the “Sales“ is always maximum, you can also do like this:

Measure 2 = 
DIVIDE(
    MAX(Sheet1[Values]),
    CALCULATE(
        MAX(Sheet1[Values]),
        ALL(Sheet1)
    )
)

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@GGDAC , can you explain this 100% calculation and these are columns or measures or the dimension values

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Dear Amit

This 100% is the measure which I want to add in my table as another column

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
Top Kudoed Authors