Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi,
I am trying to create a new measure using a simple dax calculation-
Bounce % = DIVIDE(Pages[Bounces],Pages[Sessions])
But am getting the following message:
'The syntax for Pages is incorrect.......'
I have already used this formula to create the same measure in a different table, as below-
Bounce Rate % = DIVIDE(Landing[Bounces],Landing[Sessions])
And it works fine.
Can someone please shed some light?
Thanks,
A Struggling Newbie
Solved! Go to Solution.
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!
Not sure if it's really this simple, but put ' ' round the table name Pages - e.g.
Bounce % = DIVIDE( 'Pages'[Bounces], 'Pages'[Sessions] )
unfortunately not.
....if you can read that!
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?
Ahhh! Got it!
As it works as the calculated column, then that is what I will go with- hopefully this one will work too!
Thanks a lot. 🙂
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,
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
88 | |
86 | |
84 | |
68 | |
49 |
User | Count |
---|---|
138 | |
111 | |
104 | |
65 | |
64 |