Forum Discussion
divison calculation for the same column
Hi Anonymous ,
Try
CH/OL = CALCULATE(SUM('Detail'[Amount Financed]),FILTER('Detail','Detail'[doc type]<>"Operating Lease" && 'Detail'[Doc type]<>"Contract Hire"))
If you want to remove other filters, add the ALL/ALLSELECTED function
CH/OL = CALCULATE(SUM('Detail'[Amount Financed]),FILTER(ALL('Detail'),'Detail'[doc type]<>"Operating Lease" && 'Detail'[Doc type]<>"Contract Hire"))
or
CH/OL = CALCULATE(SUM('Detail'[Amount Financed]),FILTER(ALLSELECTED('Detail'),'Detail'[doc type]<>"Operating Lease" && 'Detail'[Doc type]<>"Contract Hire"))
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous5 years agoNot applicable
Just a thought but could it be <> in the formula as I need it to add up amount financed values for all of the CH and OL
- Anonymous5 years agoNot applicable
almost solved the issue
So I am using the fact table to get the figures but the details for the managers are coming from a connecting table as i need to use two table for a differernt calculation
therefore, if i add the manager details from the same table it works but if i use the connecting table it does not work.
but that means the other calculation i need will not work so either way there is an issue
What can i di to make both work or use the connecting table
- Anonymous5 years agoNot applicableAlso changed formula to this =
HP/FL 2 = CALCULATE(SUM(Detail[Amount Financed]), FILTER(Detail,Detail[Doc Type] IN {"Hire Purchase", "Finance Lease"}))CH/OL 3 = CALCULATE(SUM(Detail[Amount Financed]), FILTER(Detail,Detail[Doc Type] IN {"Contract Hire", "Operating Lease"}))