Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!View all the Fabric Data Days sessions on demand. View schedule
Hello everyone, how are you?
I have a question that I am having trouble solving.
I have a table with invoices (IdInvoices) and their amounts, on the other hand I have a table of Credit, which rectify these invoices, where I have (IDInvoice, idCredit, amounts)
I need to get the matrix in such a way that for each invoice I get the amount of that invoice, and in the lower row I get the amount of the credit note corresponding to that invoice, but I do not know how to calculate it.
Can someone help me? Thanks
Solved! Go to Solution.
Hi,
You can make a measure something like this: if(isinscope[creditnote],sum(CreditnoteAmount), sum(invoiceAmount),
--> Isinscope[] captures the rowlevel, starts with the lowest/desired rowlevel.
---> IF function can be replaced by SWITCH() --> play with variables to make the measure better readable
Hi,
You can make a measure something like this: if(isinscope[creditnote],sum(CreditnoteAmount), sum(invoiceAmount),
--> Isinscope[] captures the rowlevel, starts with the lowest/desired rowlevel.
---> IF function can be replaced by SWITCH() --> play with variables to make the measure better readable
Hello @afrutos ,
Request you to please provide sample data with expected result in tabular format.
Cheers,
Shishir
Hi yes, this is an example of what i need
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!