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
Anonymous
Not applicable

Find the Sales Per Row Per Year Per Channel and Multiple by Factor from lookup Table

Hi Experts

 

See attached sample PBIX

 

I want to divide the sales for each row by the Total for that Year and By the Channel. So in the FACTSales Add up the total Sales by  Year and by Channel then Divide each row by that Sum. Then Find the Multiple in the Lookuptable and multiple each row by the that mulitpler..

 

Example. 

Year 2020

Total ALT Sale  =19579

Total DIR Sale = 22259

For each row that has Channel DIR / 2259 and for each row that has ALT / 19579

 

Then lookup in LOOKUPTable Column Sales U$D find the mulitpler for ALT and Dir in our case ALT= 1.8 and DIR = 18.1 then mutiple each row by that number if its a dir or alt in the sales table

 

Sample File..

https://www.dropbox.com/s/dclkz5shn3a40gv/test_.pbix?dl=0 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

 

please check the below picture and the link down below, whether it is what you are looking for.

 

Picture2.png

 

https://www.dropbox.com/s/lg43t2e49vabvsw/test_.pbix?dl=0 

 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


View solution in original post

3 REPLIES 3
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

 

please check the below picture and the link down below, whether it is what you are looking for.

 

Picture2.png

 

https://www.dropbox.com/s/lg43t2e49vabvsw/test_.pbix?dl=0 

 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Anonymous
Not applicable
Anonymous
Not applicable

Thanks you sir looks good let me test and come back to you

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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