Forum Discussion
Anonymous
4 years agoNot applicable
Divide All Values Based on Column While Respecting Filter Context in Pivot Table
Hi all, First post, hope everyone is well 😊 I have a relatively simple query, but unsure of how to go about constructing a DAX expression. Probably easier to explain with a simple exa...
kitgo2
4 years agoAdvocate I
try -- you would just need to replace Revenue with Sales for the sales measure:
#Revenue = Calculate(Divide(CALCULATE(sum(Pivot[Value]),Pivot[Type]="Revenue", Allexcept(Pivot,Pivot[Company])),CALCULATE(sum(Pivot[Value]),Pivot[Type]="Number", Allexcept(Pivot,Pivot[Company])),0),ALLEXCEPT(Pivot,Pivot[Company]))
- Anonymous4 years agoNot applicable
Hi kitgo2 thanks a lot for this, let me a give it a try and will come back to you.