cancel
Showing results for
Did you mean:
New Member

## Medidas rápidas

Buenos días,

Tengo calculada una medida rápida que introduzco como elemento en el numerador de una nueva medida ràpida, a esta nueva medida rápida le aplico un filtro, pero no funciona. No ofrece el resultado que debería dar.

Gracias

1 ACCEPTED SOLUTION
Community Support

You can use Measure and selectvalue() to do it.

I created some data:

Here are the steps you can follow：

1. Create measure.

``all_amount = SUMX(ALL('Table'),'Table'[Amount])``
``````group_amount =
var _select=SELECTEDVALUE('Table'[Month])
return
SUMX(FILTER(ALLSELECTED('Table'),'Table'[Month]=_select),[Amount])``````
``````divide =
DIVIDE([group_amount],[all_amount])``````

2. Used [Month] as a slicer.

3. Result:

When the slicer selects, the measure changes accordingly:

The slicer is 10:

The slicer is 11:

Best Regards,

Liu Yang

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

3 REPLIES 3
Community Support

You can use Measure and selectvalue() to do it.

I created some data:

Here are the steps you can follow：

1. Create measure.

``all_amount = SUMX(ALL('Table'),'Table'[Amount])``
``````group_amount =
var _select=SELECTEDVALUE('Table'[Month])
return
SUMX(FILTER(ALLSELECTED('Table'),'Table'[Month]=_select),[Amount])``````
``````divide =
DIVIDE([group_amount],[all_amount])``````

2. Used [Month] as a slicer.

3. Result:

When the slicer selects, the measure changes accordingly:

The slicer is 10:

The slicer is 11:

Best Regards,

Liu Yang

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

New Member

Primero he creado dos medidas rápidas y luego he creado una tercera medida rápida, que es una división de las dos medidas rápidas anteriores. Sobre estas luego he aplicado un filtro que no integro en la medida rápida, sinoi que utiliazo la opción del panel de filtros. el resultado no lo da bien, no lo calcula

Gracias

Super User

@gerenciajanda , you can create a new measure and add filter

example

Calcullate([Quick Meausre 1], filter(Table, Table[Col]="ABC" ))

Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!
!! Subscribe to my youtube Channel !!

Announcements

#### Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

#### Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

#### What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

#### Check it out!

Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!

Top Solution Authors
Top Kudoed Authors