Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Afternoon - hoping someone can put me out of my misery....
Using the above as an example...
The following Tables have a relationship via a Customer Mapping table
Term is a calculated column from Contracts (basic datediff from Today() to term end date, in months)
GL has a calculated column to determine the last posting date of an invoice
LastPostingDate = calculate(max(GL[Posting Date (bins)]),ALLEXCEPT(GL,GL[Customer Map]), GL[Posting Date] <= today())
Last Invoice is a measure to sum the value, filtering so the posting date is the same as the last posting date
LastInvoice = calculate(sum(GL[Amount]),filter(GL,GL[Posting Date (bins)] = GL[LastPostingDate]))
Remaining Revenue is a measure to multiply the 2 values
Remaining Revenue = calculate([LastInvoice] * MAX('Contracts'[Months Remaining]))
All this is working accurately per line (by customer) however, the Total (as expected) is also calulating in this was, summing the Last Invoice and multiplying by the MAX of the term remaining. - highlighted in RED. Whereas, I need to calculate each line individually and sum that, highlighted in Green.
Any ideas?
Thanks in advance
Solved! Go to Solution.
Hi @pr1ngl3 Try it maesure
IF( HASONEVALUE('table'[Customer]),
[Remaining Revenue],
SUMX( VALUES('table'[Customer]),
[Remaining Revenue]))
Hi @pr1ngl3 Try it maesure
IF( HASONEVALUE('table'[Customer]),
[Remaining Revenue],
SUMX( VALUES('table'[Customer]),
[Remaining Revenue]))
Thank you so much!! been struggling with this for a while.
Such a quick reply too 😁
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
9 | |
8 | |
8 |
User | Count |
---|---|
14 | |
12 | |
11 | |
11 | |
8 |