cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Create new column with ratio based on values in one column and filter on other column

Hi there, 

 

I am trying to create a new column "Ratio" which calculates the ratio of the quantities sold (#) in the product groups (A/B) in a specific calendar week: # product A/ (# product A + # product B)

 

Product groupCalendar WeekQuantities sold (#)Ratio
A112Ratio (week 1)= 12/(12+8)
B18Ratio (week 1)= 12/(12+8)
A214Ratio (week 2)= 14/(14+7)
B27Ratio (week 2)= 14/(14+7)

 

Thank you in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Solution Sage
Solution Sage

@Arual123  try this in a calculated column

wdx223_Daniel_0-1606034876729.png

and this in a visual

wdx223_Daniel_1-1606035060488.png

 

View solution in original post

1 REPLY 1
Highlighted
Solution Sage
Solution Sage

@Arual123  try this in a calculated column

wdx223_Daniel_0-1606034876729.png

and this in a visual

wdx223_Daniel_1-1606035060488.png

 

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Community Conference

Microsoft Power Platform Communities

Check out the Winners!

secondImage

Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Solution Authors
Top Kudoed Authors