Forum Discussion
DAX expression aggregation
- 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.
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.
- Anonymous4 years agoNot applicable
In the measure, what does 'Table'[Value] represent in your example?
- v-zhangti4 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!