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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
dalofe
Helper I
Helper I

Ayuda con objetivos de ventas de dos años

Hola, necesigo su ayuda con lo siguiente

Tengo los objetivos de ventas para cada mes de dos vendedores A y B.  Para el año 2022 y 2023 (solo Enero por el momento)

Captura0.JPG 

El problema es que las metas del 2022 se repiten en los meses del 2023

 

Captura1.JPG

 

Captura2.JPG

 

La medida que utilizo para calcular las metas de cada es:

 

Captura3.JPG

 

 

 

 

1 ACCEPTED SOLUTION
dalofe
Helper I
Helper I

Chicos, ya lo resolví por mi cuenta, si alguien lo necesita dejo la solución:

Solo agregar otro filtro para el año

 

TREATAS(VALUES(Calendario[Mes]),'Metas Coach'[Mes]),TREATAS(VALUES(Calendario[Año]),'Metas Coach'[Año])

View solution in original post

4 REPLIES 4
Syndicate_Admin
Administrator
Administrator

Nice day

Hey I have the same problem, where do I put that filter? Sorry the ignorance is that I'm new to Power BI

What happens to me is that I put it in a table and if the goal is not summarized the client repeats me, if the summary leaves me all the sellers

sin sumar.pngsumandolos.png

dalofe
Helper I
Helper I

Chicos, ya lo resolví por mi cuenta, si alguien lo necesita dejo la solución:

Solo agregar otro filtro para el año

 

TREATAS(VALUES(Calendario[Mes]),'Metas Coach'[Mes]),TREATAS(VALUES(Calendario[Año]),'Metas Coach'[Año])
v-yangliu-msft
Community Support
Community Support

Hi  @dalofe ,

I created some data:

Table 2:

vyangliumsft_0-1673314286328.png

Here are the steps you can follow:

1. Create measure.

Flag =
var _selectmonth=SELECTEDVALUE('Table 2'[Month])
var _selectyear=SELECTEDVALUE('Table 2'[Ano])
var _mes=MAXX(FILTER(ALL('Table 2'),'Table 2'[Month]=_selectmonth),[Mes])
return
IF(
    MAX('Table'[Mes]) =_mes && MAX('Table'[Ano])= _selectyear,1,0)
Measure=SUMX(ALLSELECTED('Table'),[Meta])

2. Place [Flag]in Filters, set is=1, apply filter.

vyangliumsft_1-1673314286329.png

3. Result:

vyangliumsft_2-1673314286333.png

If it doesn't meet your expectations, can you show the expected results in the form of pictures, we can better help you.

 

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

Gracias por tu ayuda, ya edité el post para explicarte mejor

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.