The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello,
I'm working on integrating a billing report with a few hundred thousand lines of data into Power BI. A lot of the invoices are billed in parts. For instance, a $1,000 invoice might be billed to the client as $900, $90, and $10, each with a different due date. I'm looking to have a card that displays the due date with the highest value. Obviously, we don't care as much about that $100 as we do about the $900.
Thanks
Solved! Go to Solution.
@Anonymous,
I made a test using the following sample table.
Firstly, create a new column in the table using the DAX below.
MaxInvoice = CALCULATE(MAX(Table1[invoices]),ALLEXCEPT(Table1,Table1[Client]))
Secondly, create a new table using the following formula.
Table = SELECTCOLUMNS(FILTER(Table1,Table1[invoices]=Table1[MaxInvoice]),"Client",Table1[Client],"Date",Table1[Due Date],"Highest",Table1[MaxInvoice])
Regards,
Lydia Zhang
@Anonymous,
I made a test using the following sample table.
Firstly, create a new column in the table using the DAX below.
MaxInvoice = CALCULATE(MAX(Table1[invoices]),ALLEXCEPT(Table1,Table1[Client]))
Secondly, create a new table using the following formula.
Table = SELECTCOLUMNS(FILTER(Table1,Table1[invoices]=Table1[MaxInvoice]),"Client",Table1[Client],"Date",Table1[Due Date],"Highest",Table1[MaxInvoice])
Regards,
Lydia Zhang
Hi Lydia,
Thanks so much! Got it to work perfectly.
Regards,
Seth
@Anonymous,
Glad to hear the issue is solved. Please accept my reply as answer, that way, other community members could easily find the answer when they get same issue.
Regards,
Hi there,
So I think you'll want to use some form of the FIRSTNONBLANK function for this to display the "Top Date" based on value. There's a great post by Rob Collie on PowerPivotPro that talks about how to do this for products, you'd just substitute the product name field with date. The post can be found here. Hopefully this can help steer you in the right direction.
Reid Havens -Principal Consultant
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
79 | |
71 | |
48 | |
41 |
User | Count |
---|---|
136 | |
108 | |
71 | |
64 | |
58 |