cancel
Showing results 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.

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.

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
Community Support

Hi @jay_patel ,

Please refer to my .pbix file.

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.

3 REPLIES 3
Community Support

Hi @jay_patel ,

Please refer to my .pbix file.

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.

Helper IV

Hi amit

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

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))

Announcements

#### 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

#### Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

#### Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors