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
sdhn
Responsive Resident
Responsive Resident

Column or formula

Hi All,

 

I am using Power Bi desktop to develope DBs.

 

I have a source table similar to below:

 

FruitsSaleTotal Sales
Apple10200
Mango20500

Pomegranate

 

25 600

 

I need to write column or messaure to find result sale/total sales for each fruit.

 

For Apple :   10/200 * 100 = 5 %

 

Any help will be appreciated 

2 ACCEPTED SOLUTIONS
FrankAT
Community Champion
Community Champion

Hi @sdhn ,

with a calculated column:

 

23-07-_2021_00-30-45.png

 

With a measure for a matrix:

 

23-07-_2021_00-30-29.png

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

View solution in original post

v-easonf-msft
Community Support
Community Support

Hi, @sdhn 

If you are not familiar with measure, you can start with “quick measure” to familiarize yourself with some commonly used functions.

1.png

2.png

divide-function-dax 

 

Best Regards,
Community Support Team _ Eason

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @sdhn 

If you are not familiar with measure, you can start with “quick measure” to familiarize yourself with some commonly used functions.

1.png

2.png

divide-function-dax 

 

Best Regards,
Community Support Team _ Eason

FrankAT
Community Champion
Community Champion

Hi @sdhn ,

with a calculated column:

 

23-07-_2021_00-30-45.png

 

With a measure for a matrix:

 

23-07-_2021_00-30-29.png

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

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.