Forum Discussion
Anonymous
4 years agoNot applicable
DAX expression aggregation
Hello community, I am working with daily records stored mostly as durations in seconds. I am using DAX to DIVIDE numerators and denominators to return percentage values. Once I put these values i...
- 4 years ago
Hi, Anonymous
You can try the following methods.
Column:
value = IF([numerator]=0,0,DIVIDE([numerator],[denominator]))Measure:
Measure = IF ( HASONEVALUE ( 'Table'[report_date] ), SUM ( 'Table'[value] ), DIVIDE ( SUM ( 'Table'[numerator] ), SUM ( 'Table'[denominator] ) ) )Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
4 years agoNot applicable
In the measure, what does 'Table'[Value] represent in your example?
v-zhangti
4 years agoCommunity Support
Hi, Anonymous
'Table'[Value] is the percentage of your above table.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous4 years agoNot applicable
Works exactly the way I needed. Thank you!