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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
harirao
Post Prodigy
Post Prodigy

Need to do Multiplication using calculated Measure with Column

Hi All, 

I have created a measure, did multiplication with column, not getting correct result.

13wk Surplus
= IF(CALCULATE('Final base'[On-hand Inventory]+ 'Final base'[13wk commits]-'Final base'[Buffer]-'Final base'[Open Backlog]-'Final base'[13wk Fcst]) <0, 0, CALCULATE('Final base'[On-hand Inventory]+ 'Final base'[13wk commits]-'Final base'[Buffer]-'Final base'[Open Backlog]-'Final base'[13wk Fcst]))


Above highlited in bold are measure's used to derive 13wk Surplus

13wk Surplus $ = CALCULATE('Final base'[13wk Surplus] * SUM('Final base'[Cost]))
Correct result should be (312 * 189= 58968)

3.PNG

 

Thanks for your help

 

Regards,

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

Hi, @harirao 

 

It’s my pleasure to answer for you.

Try like this:

 

13wk Surplus $ =
'Final base'[13wk Surplus] * SUM ( 'Final base'[Cost] )

 

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

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

5 REPLIES 5
v-janeyg-msft
Community Support
Community Support

Hi, @harirao 

 

It’s my pleasure to answer for you.

Try like this:

 

13wk Surplus $ =
'Final base'[13wk Surplus] * SUM ( 'Final base'[Cost] )

 

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

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

amitchandak
Super User
Super User

@harirao ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Hi @amitchandak ,

 

Is it possible to provide your input based on the above dax which i have mentioned.


regards,

 



amitchandak
Super User
Super User

@harirao , You need force correct group bys , example

sumx(summarize('Final base','Final base'[ogram name], 'Final base'[BU] ,"_1", CALCULATE('Final base'[13wk Surplus] * SUM('Final base'[Cost]))),[_1])

 

 

Hi @amitchandak 

 

Thanks for quick response, still getting same numbers, below dax for your reference,

Test_$ Surplus =
sumx(summarize('Final base','Final base'[Raw Drive],'Final base'[Product ID Description],'Final base'[Supplier],'Final base'[Family],'Final base'[Capacity],'Final base'[Program Name],'Final base'[Mainstream],'Final base'[BU] ,"Test", CALCULATE('Final base'[13wk Surplus] * SUM('Final base'[Cost]))),[Test])
4.PNG

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.