cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kannav1988
New Member

Divide values from a column by specifc values of same column and display in matrix

I have a data looks like below111.PNG

Its a matrix where calculation is like
(sum of all values of column1 /sum of E)*100

so it has be for each row of account column.

5 REPLIES 5
Kannav1988
New Member

.11.PNG

i refraim my query
top most view is data and then matrix view.
To conclude.

all sum of rows must be divide by same value gross sales *100

 

Show your underlaying data structure or table please. Is gross sales a column in your table?

gross sales is same as other values as account in that column

andhiii079845
Solution Sage
Solution Sage

Measure =
Var _sumall = CALCULATE(sum('Table'[Value]),ALLSELECTED('Table'))
Var _currentvalue = sumx('Table','Table'[Value])
RETURN _currentvalue/_sumall
Ahmedx
Solution Sage
Solution Sage

 = DIVIDE(
           CALCULATE(sum('table'[column1], REMOVEFILTERS(),
            sum('table'[column1])

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Top Solution Authors