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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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