cancel
Showing results for
Did you mean:
Regular Visitor

## SUMAR CON FILTROS

Hola,

necesito realizar unas sumas con filtros, pero no logro dar con el detalle, lo necesario es sumar segun competidor y a eso sumar toda la venta de los campos vacios, quedando de la siguiente manera  en el campo Venta total

 COMPETENCIA VENTA VENTA TOTAL COMPETIDOR 1 100 1330 COMPETIDOR 1 230 1330 COMPETIDOR 2 100 1150 COMPETIDOR 2 50 1150 VACIO 1000 2000 VACIO 1000 2000

lo intente con la funcion calculate, pero el resultado es "infinito"

REP1 =

CALCULATE(

SUM(DATA[VENTA]),
FILTER(DATA, DATA[COMPETENCIA]=(DATA[COMPETENCIA])&&DATA[COMPETENCIA]=BLANK()
))
1 ACCEPTED SOLUTION
Super User IV

@jrobles , expected output is not clear.

But a new column

REP1 =

CALCULATE(

SUM(DATA[VENTA]),
FILTER(DATA, DATA[COMPETENCIA]=earlier(DATA[COMPETENCIA]) && isblank(DATA[COMPETENCIA])
))

A measure like

CALCULATE(

SUM(DATA[VENTA]),
FILTER(allselected(DATA), DATA[COMPETENCIA]=max(DATA[COMPETENCIA]) && isblank(DATA[COMPETENCIA])
))

Proud to be a Super User!

2 REPLIES 2
Community Support

Hi @jrobles ,

I'm not sure about the results you expect. Please describe the expected results based on the data you provide in more detail.

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

Super User IV

@jrobles , expected output is not clear.

But a new column

REP1 =

CALCULATE(

SUM(DATA[VENTA]),
FILTER(DATA, DATA[COMPETENCIA]=earlier(DATA[COMPETENCIA]) && isblank(DATA[COMPETENCIA])
))

A measure like

CALCULATE(

SUM(DATA[VENTA]),
FILTER(allselected(DATA), DATA[COMPETENCIA]=max(DATA[COMPETENCIA]) && isblank(DATA[COMPETENCIA])
))

Proud to be a Super User!

Announcements

#### 2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

#### Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

#### Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Top Kudoed Authors