Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Milo17
Frequent Visitor

Help with Syntax Error

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

1 ACCEPTED SOLUTION

@Milo17

 

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,

 

 

View solution in original post

7 REPLIES 7
JDLee23
Helper I
Helper I

Hi,

 

Looks like it should work! Can you post some screenshots / examples?

 

 syntax.PNGCapture 3.PNG

 

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. 

 

Capture5.PNGCapture6.PNG

 

....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. 🙂

@Milo17

 

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,

 

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.