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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
zalalu
Frequent Visitor

How to find the product of a measure and calculated column

This post has closed.

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @zalalu ,

 

The reason for the above error is: calculation logic of measure is related to its current contexts and related to your data model. I did a simple test, created a measure and calculated column respectively, and got the correct result.

Measure = CALCULATE(COUNTROWS('Table'),ALL('Table'))
Column = 'Table'[Target putput per day] * [Measure]

vhenrykmstf_0-1628066849859.png

 

So check your table, and the relationship model between the tables. If you can provide a test data model (delete sensitive information), I will answer you as soon as possible.


Best Regards,
Henry


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-henryk-mstf
Community Support
Community Support

Hi @zalalu ,

 

The reason for the above error is: calculation logic of measure is related to its current contexts and related to your data model. I did a simple test, created a measure and calculated column respectively, and got the correct result.

Measure = CALCULATE(COUNTROWS('Table'),ALL('Table'))
Column = 'Table'[Target putput per day] * [Measure]

vhenrykmstf_0-1628066849859.png

 

So check your table, and the relationship model between the tables. If you can provide a test data model (delete sensitive information), I will answer you as soon as possible.


Best Regards,
Henry


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

MFelix
Super User
Super User

Hi @zalalu ,

 

This has to do with a question of context and the granularity of the information how the measure and the total values are calculated.

 

Can you share how you are calculating both measures (Number days and Target Output) if possible can you please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.

If the information is sensitive please share it trough private message.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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