Forum Discussion
Akvatraine02
5 years agoNew Member
Ayuda con DAX
Hola a todos, tengo una duda que no he podido resolver y quería ver si me podrían orientar: Pasa que quiero hacer una columna, medida o parametro, donde yo pueda tener el promedio diario de horas en...
- 5 years ago
Hi, Akvatraine02
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
You may create a measure as below.
Result = DIVIDE( CALCULATE( SUM('Table'[Loss hours]), ALLSELECTED('Table') ), DISTINCTCOUNT('Table'[YearMonth])*30 )Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
5 years agoAkvatraine02 , Try formula like
MTD Sales = CALCULATE(SUM(Table[motivo1]),DATESMTD('Date'[Date]))/CALCULATE(distinctcount('Date'[Date]),DATESMTD('Date'[Date]), not(isblank(SUM(Table[motivo1]))))