Forum Discussion
Divide every row with a measure
Hi !
I want to divide every row with a measure where the measure is filtered with a category and that category exixts in the same column where I want to execute the division.
My Measure:-
Now,
what I want:-
I tried this measure in this dummy example it is working but not in my orginal example !
Thanks in Advance !
Hi,
I am still not sure of that you need but this is what i can contribute from my understanding. Let's forget the division for now. Let's just try to get the denominator correct. With the following filters applied (after exporting your data to an Excel file):
- Company = Full Industry
- Time period = 1 October 2020
- Cheannel name = HYPERMARKETS/SUPERMARKETS/DISCOUNTERS
- Country = United States
- Category = Category 2
the total of the volume column is 293228.9051. With your filters remaining intact (as you can see in the image), this measure returns that value
Calculation 3 = CALCULATE(SUM(Sheet1[Volume]),Sheet1[Company]="Full Industry",Sheet1[Brand]="Category 2")Hope this helps.
11 Replies
- amitchandak
Super User
souvik900766 , You have try All or allselcted. Allexcept keep that filter
01 =
DIVIDE (
SUM('Table'[Volume]),
CALCULATE (
SUM('Table'[Volume]),
FILTER (
ALL ( 'Table','Table'[Category] ),
'Table'[Company Name] = "Full Industry"
)
)
) - souvik900766
Helper IV
Hi ! amitchandak
This measure of yours worked !
Category = divide([Volume],CALCULATE([Volume],Filter(allselected(Table),Table[company_nm]="Full Industry")))
But but ....
When I am trying to check out the Full Industry from Company Name column or Category A from brand Name column from the table the measure is vanishing.- amitchandak
Super User
souvik900766 , becasue allselected need full industry to be one the selected value (Not removed by filter or slicer)
in that case all will do. Check all for both cases
Category = divide([Volume],CALCULATE([Volume],Filter(all(Table),Table[company_nm]="Full Industry")))
- souvik900766
Helper IV
Hi ! amitchandak
Dont know what is happening !
I used your last measure:_
Category = divide([Volume],CALCULATE([Volume],Filter(all(Table),Table[company_nm]="Full Industry")))
In my Dummy example it is working but in my orginal file it is showing 0.00% !!!