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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Bakels1904
New Member

calculate error

 

what is the wrong in the below calculation?

 

Thanksin advance 

Bakels1904_0-1645102058481.png

 

1 ACCEPTED SOLUTION
v-chenwuz-msft
Community Support
Community Support

Hi @Bakels1904 ,

 

It is strange to write a DAX like you provided. Please refer this guide of  CALCULATE.

Syntax:

CALCULATE(<expression>[, <filter1> [, <filter2> [, …]]])

 

The first parameter is used to be aggregation functions like sum(), max(). the result of this normally is one value. 

The second parameter is used to some filtered tables which result is table.

However, the result of FILTER(ItemCostPrice,max(ItemCostPrice[ToDate])-1), in your case, is table. I do not understand what you want to calculate but i think you can change CALCULATE() to CALCULATETABLE()

 

Or you can refer this article for more details.

https://www.sqlgene.com/2019/04/30/dax-error-the-expression-refers-to-multiple-columns-multiple-colu... 

 

If you need more help please share sample data and expect result.

 

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
v-chenwuz-msft
Community Support
Community Support

Hi @Bakels1904 ,

 

It is strange to write a DAX like you provided. Please refer this guide of  CALCULATE.

Syntax:

CALCULATE(<expression>[, <filter1> [, <filter2> [, …]]])

 

The first parameter is used to be aggregation functions like sum(), max(). the result of this normally is one value. 

The second parameter is used to some filtered tables which result is table.

However, the result of FILTER(ItemCostPrice,max(ItemCostPrice[ToDate])-1), in your case, is table. I do not understand what you want to calculate but i think you can change CALCULATE() to CALCULATETABLE()

 

Or you can refer this article for more details.

https://www.sqlgene.com/2019/04/30/dax-error-the-expression-refers-to-multiple-columns-multiple-colu... 

 

If you need more help please share sample data and expect result.

 

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Samarth_18
Community Champion
Community Champion

HI @Bakels1904 ,

 

If you could share sample data in text format with expected output then people can provide you may be better approach.

 

You can refer to below article to get answer more quickly 🙂

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523 

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors