Skip to main content
cancel
Showing results for 
Search instead 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.

Reply
Anonymous
Not applicable

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
wdx223_Daniel
Super User
Super User

@Anonymous  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
wdx223_Daniel
Super User
Super User

@Anonymous  try this in a calculated column

wdx223_Daniel_0-1606034876729.png

and this in a visual

wdx223_Daniel_1-1606035060488.png

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

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

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.

Top Solution Authors