Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi all,
I am new to Power BI and would like to get a little help with DAX expression. I have two tables which have no relationships between them: “Invoices” and “Payments made”. I want to create a column called “Paid amount” in the first table which calculates if we can pay a full amount of invoice or a part depending on a total sum of payments made and puts corresponding value. It seems that I should use rolling sums, but I stucked at developing a logic of an expression. Both tables involve updating. Anyone who can help me is very grateful.
“Invoices” table looks like this:
“Payments made” table looks like this:
Expected result:
Solved! Go to Solution.
HI @dechernov,
I'd like to suggest you write measure formula to lookup and summary table records based on current date values:
Rolling Payment=
VAR currDate =
MAX ( Invoices[Date] )
RETURN
SUMX (
FILTER ( ALLSELECTED ( Payments ), Payments[Date] <= currDate ),
Payments[Paid Amount]
)
Regards,
Xiaoxin Sheng
HI @dechernov,
I'd like to suggest you write measure formula to lookup and summary table records based on current date values:
Rolling Payment=
VAR currDate =
MAX ( Invoices[Date] )
RETURN
SUMX (
FILTER ( ALLSELECTED ( Payments ), Payments[Date] <= currDate ),
Payments[Paid Amount]
)
Regards,
Xiaoxin Sheng
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
126 | |
113 | |
71 | |
65 | |
46 |