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
adriankelly
Frequent Visitor

Multiplication or division of two measures

Hi,

 

I have two measures calculated from a data column and what if parameters. 

These are:

Measure 1 = Sum('Table 1'[X]) * 'Parameter'[Value 1]

Measure 2 = Sum('Table 1'[X]) * 'Parameter'[Value 2]

 

With this the output is both a sum value and row context values displayed in visuals.

My question is , is it possible to multiply/divide measure 1 x measure 2 and get the same output.

It works for addition or subtraction of the two measures but not multiplication or division.

When multiplying the result is blank and when dividing the result is infinity. 

1 ACCEPTED SOLUTION
Tahreem24
Super User
Super User

@adriankelly ,

Yup, you can divide the and multiply the two measures:

Measure 3 = IFERROR((Measure1 * Measure2),"-")

Measure 4  = IFERROR((Measure1 / Measure2),"-")

I would really appreaciate your THUMBS UP for support!

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

View solution in original post

4 REPLIES 4
adriankelly
Frequent Visitor

Thank you both for your help.

Both solutions worked.

 

Hi @adriankelly ,

If the problem has been resolved, could you please mark the helpful post as Answered? It will help others in the community find the solution easily when they face the same problem with you. Thank you.

Best Regards

Rena

Community Support Team _ Rena
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

@adriankelly , Try like

division = divide([measure1],[measure2])
multiplication = SumX('Table 1','Table 1'[X]*'Table 1'[X]) * 'Parameter'[Value 2] * 'Parameter'[Value 1]

Tahreem24
Super User
Super User

@adriankelly ,

Yup, you can divide the and multiply the two measures:

Measure 3 = IFERROR((Measure1 * Measure2),"-")

Measure 4  = IFERROR((Measure1 / Measure2),"-")

I would really appreaciate your THUMBS UP for support!

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

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.