web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

View Computed columns: How to Multiply three fields?

(0) ShareShare
ReportReport
Posted on by

Hello,

How can I multiply 3 real type fields in computed column method?

SysComputedColumn::multiply takes only 2 arguments.

I tried something like this, but it returns error during the sync "Incorrect syntax near the keyword 'AND'".

SysComputedColumn::multiply(

    SysComputedColumn::multiply(

        SysComputedColumn::returnField( tableStr(MyView), identifierStr(WHSPhysDimUOM), fieldStr(WHSPhysDimUOM,Depth)),

        SysComputedColumn::returnField( tableStr(MyView), identifierStr(WHSPhysDimUOM), fieldStr(WHSPhysDimUOM, Width))),

        SysComputedColumn::returnField( tableStr(MyView), identifierStr(WHSPhysDimUOM), fieldStr(WHSPhysDimUOM,Height)));

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,162 Moderator on at

    A computed column method should return a string that contains a T-SQL statement that calculates the result that you want to show in the computed column. In T-SQL you can multiply three columns.

    If you want to multiply A * B * C you can also split it to two multiplications: first A * B, then take the result of that and multiply it with C.

    Does this help you?

  • DAX Dev Profile Picture
    on at

    Hi,

    that's the logic actually what I try to achieve with my code above, but have a problem.

  • Suggested answer
    nmaenpaa Profile Picture
    101,162 Moderator on at

    You don't have to use SysComputedColumn::multiply() method because it doesn't fit your requirement.

    Look at the source code of that method and you notice that you can easily write code that works with three fields.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 456 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans