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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

cómo contar el valor de fecha distinto por nombre ?

Hola

¿Cómo calcular un valor de fecha distinto por nombre? quiero dax para él.

Capturedes.PNG

Quiero esta columna en power bi (countdistinct of date by Name).

Además, sume todos los valores de nombre de una sola vez.

por ejemplo A(5) +B(4)+C(1) á 10

No la suma total que es 87.

y habrá los mismos valores por adelantado para el nombre por lo que la adición de recuento distinto no funcionará.

Gracias

11 REPLIES 11
az38
Community Champion
Community Champion

@SushantSharma

lo siento, para su segunda tarea tratar

Measure = SUMX(
SUMMARIZE('Table', 'Table'[Name], "DistinctDates", CALCULATE(DISTINCTCOUNT('Table'[Date]), ALLEXCEPT('Table','Table'[Name]))),
[DistinctDates]
)

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
az38
Community Champion
Community Champion

Hola @SushantSharma

Tratar

Measure = CALCULATE(DISTINCTCOUNT('Table'[Date]), ALLEXCEPT('Table', 'Table'[Name]) )

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

Hola

esto no está funcionando.

lo que quiero es agregar todo el valor de fechas distintas cuentan por el nombre.

Ejemplo

- recuento distinto de fechas por nombre .

esto es lo que quiero y luego sumar todo el número distintivo de fecha por nombre . (Una sola vez)

az38
Community Champion
Community Champion

@SushantSharma

ver mi segundo post. ¿No está bien?


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

No, está agregando todos los valores. no funciona.

az38
Community Champion
Community Champion

@SushantSharma

Creo que es completamente lo que necesitas.

Nombre Fecha
A 01.01.2020
A 01.01.2020
A 02.01.2020
A 03.01.2020
A 03.01.2020
A 04.01.2020
B 05.01.2020
B 06.01.2020
B 06.01.2020

Снимок.PNG


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

Exactamente esto es lo que necesito pero no trabajo en el mío.

permítanme comprobar de nuevo de lo contrario voy a publicar datos reales.

az38
Community Champion
Community Champion

@SushantSharma

preste atención, sugerí 2 medidas, pruebe esta declaración:

Measure = SUMX(
SUMMARIZE('Table', 'Table'[Name], "DistinctDates", CALCULATE(DISTINCTCOUNT('Table'[Date]), ALLEXCEPT('Table','Table'[Name]))),
[DistinctDates]
)


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

Estoy probando esto sólo.

az38
Community Champion
Community Champion

@SushantSharma

tal vez usted tiene un modelo de datos más complicado entonces en ejemplo?


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

INRW0195415-01-2020
INNS0250315-01-2020
INSG0156315-01-2020
INJA0163901-01-2020
INSS0026701-01-2020
INKM0111401-01-2020
INAR0137101-01-2020
INMS0014801-01-2020
INNK0167501-01-2020
INVR0040601-01-2020
INYD0078401-01-2020
INFK0095401-01-2020
INJS0080101-01-2020
INGM0133101-01-2020
INAB0114101-01-2020
INAI0171001-01-2020
INAJ0102701-01-2020
INMK0247901-01-2020
INBR0080201-01-2020
INDK0049601-01-2020
INBT0117001-01-2020
INGS0098201-01-2020
INSS0193101-01-2020
INAK0087901-01-2020
INSK0151101-01-2020
INAH0189701-01-2020
INSS0159201-01-2020
INSS0082601-01-2020
INAS0263301-01-2020
INVC0043601-01-2020
INNA0067401-01-2020
INRP0068901-01-2020
INVP0080401-01-2020
INRB0240015-01-2020
INDP0083101-01-2020
INPS0195001-01-2020
INCB0180815-01-2020
INVP0080415-01-2020
INDU0164501-01-2020
INTS0133801-01-2020
INSS0110701-01-2020
INPN0203301-01-2020
INMK0183601-01-2020
INAK0254701-01-2020
INAK0050301-01-2020
INAR0052001-01-2020
INAB0069301-01-2020
INAD0191601-01-2020
INSN0177501-01-2020
INSY0256301-01-2020
INAP0204815-01-2020
INDB0254815-01-2020
INAS0197401-01-2020
INDK0158201-01-2020
INNV0239001-01-2020
INKP0179801-01-2020
INMP0142515-01-2020
INKP0192015-01-2020
INKK0202015-01-2020
INUC0257801-01-2020
INAY0157001-01-2020
INNV0239015-01-2020
INME0254315-01-2020
INRS0149615-01-2020
INMK0162815-01-2020
INSN0184915-01-2020
INAY0157015-01-2020
INSB0173901-01-2020
INSS0180915-01-2020
INAG0185615-01-2020
INPG0148415-01-2020
INNS0179615-01-2020
INNG0178215-01-2020
INAK0182915-01-2020
INSK0260015-01-2020
INSY0256315-01-2020
INMS0051015-01-2020
INRP0168115-01-2020
INSM0184215-01-2020
INVK0181315-01-2020
INRG0130201-01-2020
INRG0250015-01-2020
INRG0130215-01-2020
INUC0257815-01-2020
INKB0253515-01-2020
INVN0241315-01-2020
INSK0198815-01-2020
INCM0174915-01-2020
INKK0238715-01-2020
INSC0240315-01-2020
INKK0238701-01-2020
INAS0197415-01-2020
INPK0149715-01-2020
INKP0179815-01-2020
INDK0158215-01-2020
INRK0253901-01-2020
INSY0254015-01-2020
INDK0246915-01-2020
INRK0253915-01-2020
INSB0173915-01-2020
INKG0205615-01-2020
INBM0134215-01-2020
INNG0178201-01-2020
INKD0249801-01-2020
INDB0254801-01-2020
INKD0249815-01-2020
INAM0181215-01-2020
INVK0181301-01-2020

Estos son los datos que estoy usando, y sólo para su Infromation había un montón de más columnas que he detallado debido a los datos confidenciales.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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