Forum Discussion

jorgus's avatar
jorgus
Frequent Visitor
5 years ago
Solved

Count Total Distinct Dates for a Month in a Production Table

Hi there.   I have a production table with dates and other values, this table si related to a calendar table. I need to count the total of distincts date in a month, to do this I created this meas...
  • AlB's avatar
    AlB
    5 years ago

    jorgus 

    Ok, you are using Fecha in the visual instead of Date so we need to do the ALL( ) on Fecha:

    CaCantidadias Tabla VeVentas 
    CALCULATE(
        DIDISTINCTCOUNTroraentas[CAB_FECHA]),
        ALL(Calendario[FeFecha
    )

    It is probably best to only have one column with the date in the calendar table rather that, to avoid potential confusion like here.

    Please mark the question solved when done and consider giving kudos if posts are helpful.

    Contact me privately for support with any larger-scale BI needs, tutoring, etc.

    Cheers