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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
mdelalla
Regular Visitor

How to calculate Net amount based on 2 values

Hi,

I am trying to calculate the net promotion amount based on those that move from a compensation class to another compensation class (NET PROMOTION = Total amount of employees that moved into the compensation class - Total amount of employees that moved out of the compensation class). For example, if we have a total of 50 employees that moved into CC02 and we have a total of 30 employees that moved out of CC02, then the Net promotion amount would be 50-30=20.

 

How can I do this so that I can show a matrix per year based on the Comp Class?

 

Test_Net Promotions.pbix

 

Thanks!

Regards

 

Marta

1 ACCEPTED SOLUTION

6 REPLIES 6
mdelalla
Regular Visitor

@Ashish_Mathurwould you be able to help me with my query above? So far I haven't received any responses and you were really helpful with a previous query I had in the past. Thanks!

 

Regards

 

Marta

Hi,

I am not clear about your expected result.  Share a smaller dataset and clearly show the expected result for that dataset.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish, you can find a smaller sample test in the link below.

 

https://1drv.ms/u/s!AoGWrXy4WRiC-3sWjw9LeD6j3NWv?e=ZFFAx7

 

This is an example of the table that what I want to create in Power BI

Comp Class20182019202020212022
CC0420004
CC0312567
CC0264072
CC01-1-5-4-7-6

 

So for CC02 in 2018 there are 6 net promotions because there were 9 employees with New Comp Class as CC02 - 3 employees with Old Comp Class as CC02 = 6

 

Hope this is clear. Thanks for your help in advance!

 

Regards

Marta

Thanks so much! this has worked perfectly! Really appreciate the help 🙂

 

Marta

You are replying to this thread after more than a month.  I just do not know what you want.  I lost the plot.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.