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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
LucasValiante77
New Member

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:
 
LucasValiante77_3-1733241344714.png

 

How it's right now:   

LucasValiante77_4-1733241377007.png

 


 

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: 

 

LucasValiante77_5-1733241445380.png

 

 

I aprecciate if anyone can help me, thanks 🙂



2 REPLIES 2
v-xianjtan-msft
Community Support
Community Support

Hi @LucasValiante77 

 

What is the DAX code for [Dívida Pendente Moeda Original]?

01 - 30 Days =
if([Difference Days]>=01 && [Difference Days]<=30, [Dívida Pendente Moeda Original], blank())

Please provide sample data that fully covers your question and describe the efforts you have already made in this table visual.

How to provide sample data in the Power BI Forum - Microsoft Fabric Community

 

Best Regards,
Jarvis Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Please show the expected outcome based on the sample data you provided.

Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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