Forum Discussion
Euro0681
Helper II
3 years agoDividing 2 columns
I am trying to simply divide 2 columns but when doing so i get a wrong value (Example Below) The correct value I'm looking for is "1.xxxx" , Note Column1 is displaying the sum and same concept...
tamerj1
Community Champion
3 years agoEuro0681
Helper II
3 years agotamerj1 what if i need the value to be static and not change whenever extra fields are added, in other words is there a way to do this using a column as opposed to a measure?
- tamerj13 years ago
Community Champion
CALCULATE ( DIVIDE ( SUM ( 'Table'[Column1] ), SUM ( 'Table'[Column2] ) ), ALL ( 'Table' ) )
- Euro06813 years ago
Helper II
for more clarification I want the value to be static for every category. Example
Catogry1 Total = Column1/Column2 = 2.02 (made up numbers)
Category2 Total = Column1/Column2 = 1.02 (made up numbers)
anytime i use Category1 with any other fields it should always remain '2.02' kind of like a group by in SQL?