Este fórum está sendo desativado

Depois de 9 anos, este fórum será desativado. Mas calma.... estamos migrando para uma comunidade no DISCORD. Junte-se a nós.

ENTRAR PARA DISCORD

Assuntos relacionados a criação de medidas, fórmulas e funções DAX, relacionamentos etc
  • Avatar do usuário
#60986
Bom dia!
Pessoal tenho uma tabela dCalendario e nela tenho uma coluna indicando se o dia é útil (1)ou não útil (0), como faço para saber e esse dia útil é o 1º 2º 3º e assim por diante em cada mês.
Por Vilmar
Posts
#61035
Tente
Código: Selecionar todos
dCalendario = 
VAR vTabela =
    ADDCOLUMNS(
        CALENDARAUTO();
        "DiaUtil"; NOT WEEKDAY( [Date] ) IN { 1; 7 };
        "AnoMes"; VALUE( FORMAT( [Date]; "yyyymm" ) ) )
RETURN
    ADDCOLUMNS(
        vTabela;
        "Indice";
            RANKX(
                FILTER( vTabela; [AnoMes] = EARLIER( [AnoMes] ) && [DiaUtil] = TRUE() ); [Date];;ASC ) )
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]

Estamos migrando para uma comunidade no Discord