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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Frequent Visitor

## Help with measure

Hello everyone,
Please, I would need help with a measure.
I would need a measure that multiplies the Ventas Act by Value Vent Act of each of the filter elements and then divides it by the sum of the total Vent Act.

And  the result is dynamic, depending on the selection of the filter

I need help to use these excel formulas in Power BI.

Best Regards

1 ACCEPTED SOLUTION
Resident Rockstar

Hi @luissanchez,

You could create the three measures to get your desired output.

1.

```Act_Measure =
VAR temp =
SUMX ( 'Sheet5', 'Sheet5'[Ventas Act] * 'Sheet5'[Valor Vent Act] )
RETURN
DIVIDE ( temp, SUM ( 'Sheet5'[Ventas Act] ) )```

2.

```Pas_measure =
VAR temp =
SUMX ( 'Sheet5', Sheet5[Velor Vent Pas] * 'Sheet5'[Ventas pas] )
RETURN
DIVIDE ( temp, SUM ( Sheet5[Ventas pas] ) )```

3.

```Measure =
DIVIDE ( [Act_Measure] - [Pas_measure], [Act_Measure] )```

Then you will get the result below.

Hope it can help you!

Best Regards,

cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
3 REPLIES 3
Resident Rockstar

Hi @luissanchez,

You could create the three measures to get your desired output.

1.

```Act_Measure =
VAR temp =
SUMX ( 'Sheet5', 'Sheet5'[Ventas Act] * 'Sheet5'[Valor Vent Act] )
RETURN
DIVIDE ( temp, SUM ( 'Sheet5'[Ventas Act] ) )```

2.

```Pas_measure =
VAR temp =
SUMX ( 'Sheet5', Sheet5[Velor Vent Pas] * 'Sheet5'[Ventas pas] )
RETURN
DIVIDE ( temp, SUM ( Sheet5[Ventas pas] ) )```

3.

```Measure =
DIVIDE ( [Act_Measure] - [Pas_measure], [Act_Measure] )```

Then you will get the result below.

Hope it can help you!

Best Regards,

cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Frequent Visitor

Thank you for your help.

It solved the problem.

Frequent Visitor

Thank you for your answer.

I'm going to try it...

## Helpful resources

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - June 2024

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

#### Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

#### New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors