Forum Discussion
Zarlot531
Helper V
6 years agoTricky divide by "Distinct Count" problem
So below is a sample dataset to help clarify what I'm trying to do. I want to know how much we spent on, say, the "Dog" vendor divided by ALL distinct jobs, regardless of whether we spent money at th...
- 6 years ago
Hi Zarlot531 ,
Measure = VAR ave = SUM ( 'Table'[Amount] ) VAR dis = CALCULATE ( DISTINCTCOUNT ( 'Table'[Job] ), ALL ( 'Table' ) ) RETURN DIVIDE ( ave, dis )Please refer to the pbix as attached.