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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

duration

Olá, sou caçula no PBI e estou aprendendo agora. Em alguns exemplos que venho aprendendo, estou tentando configurar uma tabela de calendário e um dado de origem que é produzido junto com a duração.

Em dias intercalados que existem o meu banco de dados, uma ideia que seja independente de 1 em 1 dia e sem pular .. Exemplo: tenho dias 13/12/2018 ; 23/12/2018 ; 25/12/2018 ; 01/01/2019..

 

Usei uma fórmula: 

E da um erro quando coloco a Duração .
 
 
Informa que erro
 
Expression.Error: O argumento 'incremento' está fora do intervalo. Detalhes: 1. 00:00:00
 
Como posso resolver?
 
 
 
3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @Anonymous

What result do you like?

 

Best Ragrds

Maggie

v-juanli-msft
Community Support
Community Support

Hi  @Anonymous

Testing with your formula, see the same error as yours.

Then to make it works, 

Try this 

let
    Source = #date (2018,12,13), 
    Custom1 = List.Dates (Source, Number.Abs (Number.From (DateTime.LocalNow ()) - Number.From (Source)), #duration (1,0,0,0))
in
    Custom1

6.png

 

Best Reagrds

Maggie

Anonymous
Not applicable

let Origem = #date(2018,12,13), Personalizado1 = List.Dates(Origem,Number.From(DateTime.LocalNow())-Number.From(Origem),#duration(1,0,0,0)) in Personalizado1

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.