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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
jay_patel
Helper IV
Helper IV

want to divide the value category wise.

Hello All

 

here i am facing a problem, i have a calculated column "primary Sales" based on which i am calculating an another column and the formula for that column is  primary sales (%) = ('primary sales' * 100)/ sum of primary sales. stockiest doubt.PNG 

As you can see i have a matrix, and the formula working fine for SBU's column.. for example for CNS= primary sales(10,708.45) *  100 / total(40,315.32)

 

But for 'ALECTA' it is still dividing the value of primary sales with "40,315.32". I want to divide it with CNS's Value i.e., "10,708.45".

 

 

Also mentioning dax for all calculations below:-

 

1) 

Primary Sales CM(%) = DIVIDE([Primary Sales(%)-1],[primarysalesFinalfor-CM])
 
2)
primarysalesFinalfor-CM = CALCULATE([Primary Sales1],REMOVEFILTERS(SDivision[SBU],SDivision[DivisionName]))
1 ACCEPTED SOLUTION
v-lionel-msft
Community Support
Community Support

Hi @jay_patel ,

 

Please refer to my .pbix file.

v-lionel-msft_1-1618555866468.png

 

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

3 REPLIES 3
v-lionel-msft
Community Support
Community Support

Hi @jay_patel ,

 

Please refer to my .pbix file.

v-lionel-msft_1-1618555866468.png

 

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.

jay_patel
Helper IV
Helper IV

Hi amit

 

 

It's not working, giving same result as before.

amitchandak
Super User
Super User

@jay_patel , Try one of the two options and check

 

primarysalesFinalfor-CM = CALCULATE([Primary Sales1],allselected(SDivision[SBU],SDivision[DivisionName]))

 

or


primarysalesFinalfor-CM = CALCULATE([Primary Sales1],allselected(SDivision))

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

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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