cancel
Showing results for
Did you mean:

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Frequent Visitor

## How to create measure for Volume (in 1 000 KGS) of 1 SKU/Volume (in 1 000 KGS) of all SKU?

Hi, I know it must be simpler but I am literally stuck in this.I have the data like this

 Month Volume in 1000Kgs jan 100 feb 200 mar 300

I want the result to be shown as,100/600 for jan,200/600 for feb,300/600 for mar.Please get me the solution for this

1 ACCEPTED SOLUTION
Frequent Visitor

All selected (item) worked as comparison to this, this is showing me the exact values in col B

7 REPLIES 7
Community Support

Hi， @Parul_verma

If you just want to display as 100/600 in January, 200/600 in February, and 300/600 in March, then what you might want to create is a Text measure like the following:

``````Result =
VAR a =
SUM ( 'Table'[Volume in 1000Kgs] )
VAR b =
CALCULATE ( SUM ( 'Table'[Volume in 1000Kgs] ), ALL ( 'Table' ) )
RETURN
a & "/" & b``````

If you want the result to be a calculated value, you can also consider checking 'show value as percent of grand total' to display the result.

Best Regards,
Community Support Team _ Eason

Frequent Visitor

All selected (item) worked as comparison to this, this is showing me the exact values in col B

Super User

``````=
DIVIDE ( [Volume], CALCULATE ( [Volumne], ALL ( 'Table'[Month] ) ) )``````
Frequent Visitor

not working I am unable to take volume column without any function under calculate

Super User

Hi @Parul_verma
I thought it was a measure. Please try

``````=
DIVIDE ( SUM ( [Volume] ), CALCULATE ( SUM ( [Volumne] ), ALL ( 'Table'[Month] ) ) )``````
Memorable Member

Hi,

"shown" where? In a measure or in a calculated column?

Frequent Visitor

In a measure

Announcements

#### Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

#### Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

#### The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors