cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
praveenkumarv Regular Visitor
Regular Visitor

Error while executing DAX for selecting a range of values from a single table

Hi all,

I'm getting this following error while executing the below DAX. Could anyone pls help me to find to what went wrong?

 

A function 'CALCULATE' has been used in a True/False expression that is used as a table filter expression. This is not allowed.

 

 
error.JPG
 
 
 
error2.JPG

 

Many Thanks,

Praveen.

2 ACCEPTED SOLUTIONS

Accepted Solutions
mwegener Super Contributor
Super Contributor

Re: Error while executing DAX for selecting a range of values from a single table

Hi @praveenkumarv,

 

look at the error and on your DAX statement.

Your second CALCULATE in filter expression of your first CALCULATE is not allowed.

 

Calculate Syntax: CALCULATE ( <Expression> [, <Filter> [, <Filter> [, … ] ] ] )

https://dax.guide/calculate/

 

Best Regards,

 

Marcus

 

View solution in original post

mwegener Super Contributor
Super Contributor

Re: Error while executing DAX for selecting a range of values from a single table

Hi @praveenkumarv


maybe your closing bracket (Line 10) is on the wrong line and it belongs to the first CALCULATE (Line 4).

 

 

View solution in original post

2 REPLIES 2
mwegener Super Contributor
Super Contributor

Re: Error while executing DAX for selecting a range of values from a single table

Hi @praveenkumarv,

 

look at the error and on your DAX statement.

Your second CALCULATE in filter expression of your first CALCULATE is not allowed.

 

Calculate Syntax: CALCULATE ( <Expression> [, <Filter> [, <Filter> [, … ] ] ] )

https://dax.guide/calculate/

 

Best Regards,

 

Marcus

 

View solution in original post

mwegener Super Contributor
Super Contributor

Re: Error while executing DAX for selecting a range of values from a single table

Hi @praveenkumarv


maybe your closing bracket (Line 10) is on the wrong line and it belongs to the first CALCULATE (Line 4).

 

 

View solution in original post

Helpful resources

Announcements
New Topics Started Badges Coming

New Topics Started Badges Coming

We're releasing new versions of the badge that everyone's talking about. ;) Check your inbox for notifications.

MBAS 2020

Save the new date (and location)!

Our business applications community is growing—so we needed a different venue, resulting in a new date and location. See you there!

Difinity Conference

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)