Forum Discussion

LucasValiante77's avatar
LucasValiante77
New Member
1 year ago

Colectables by date reporting

I'm having a trouble with my visualization on powerbi desktop,

 

I created a dashboard on customer debts, with the aim of monitoring customer debts, and I created metrics to organize debts into columns 0-30 days | 30-60 days | 60-120 days|

 

When I generate the table view, the line does not respect the order of the columns and simply adds up all the values

 

formulas below: 

 

Difference Days =
VAR DataAtual = MAX('LU DATA'[Data])
RETURN
CALCULATE(DATEDIFF( MAX('TBL Divida Clientes'[DataVencimento]),DataAtual, DAY), CROSSFILTER('LU Data'[Data],'TBL Divida Clientes'[DataRegisto],none))


 
01 - 30 Days =
if([Difference Days]>=01 && [Difference Days]<=30, [Dívida Pendente Moeda Original], blank())
 
It was supposed to show like this:
 

 

How it's right now:   

 


 

I can only see it organized when I add the document data to the line, but this is unfeasible as there are clients with +100 documents: 

 

 

 

I aprecciate if anyone can help me, thanks 🙂



2 Replies