Forum Discussion
Help with Syntax Error
- 8 years ago
To use a measure, you need to aggregate the columns in your formula like:
Bounce % = DIVIDE( SUM('Pages'[Bounces]), SUM('Pages'[Sessions]) )For better understanding calculated column and measure, please refer to article below:
Calculated Columns and Measures in DAX
Regards,
Hi,
Looks like it should work! Can you post some screenshots / examples?
I'm not sure that this will help, but I've been wrong before!
Thanks!
- JDLee238 years agoHelper I
Not sure if it's really this simple, but put ' ' round the table name Pages - e.g.
Bounce % = DIVIDE( 'Pages'[Bounces], 'Pages'[Sessions] )
- Milo178 years agoFrequent Visitor
unfortunately not.
....if you can read that!
- JDLee238 years agoHelper I
Ah, right, sorry - the discrepancy arises because this is a measure, rather than a calculated column. In the previous instance you used the DIVIDE function, it was for a calculated column, not a measure.
Are you wanting this to be a measure or a calculated column?