cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gerenciajanda
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
v-yangliu-msft
Community Support
Community Support

Hi  @gerenciajanda ,

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

I created some data:

vyangliumsft_0-1638840912140.png

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.

vyangliumsft_1-1638840912142.png

3. Result:

When the slicer selects, the measure changes accordingly:

The slicer is 10:

vyangliumsft_2-1638840912166.png

The slicer is 11:

vyangliumsft_3-1638840912191.png

 

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

View solution in original post

3 REPLIES 3
v-yangliu-msft
Community Support
Community Support

Hi  @gerenciajanda ,

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

I created some data:

vyangliumsft_0-1638840912140.png

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.

vyangliumsft_1-1638840912142.png

3. Result:

When the slicer selects, the measure changes accordingly:

The slicer is 10:

vyangliumsft_2-1638840912166.png

The slicer is 11:

vyangliumsft_3-1638840912191.png

 

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

gerenciajanda
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

amitchandak
Super User
Super User

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

 

example

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

 

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
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 !!

Helpful resources

Announcements
Microsoft Build 768x460.png

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_carousel_with_text (1).png

Charticulator Design Challenge

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

May UG Leader Call Carousel 768x460.png

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.

Power BI Dev Camp Session 22 768x460.jpg

Check it out!

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