Forum Discussion
Calculate with Sum Function
Hi All,
I am trying to apply the formula to get "total Amt Due" for customer based on the "No of Days above then 0", but i am doing drag and drop it is not working, please can you guide where i am doing mistake. many thanks for your help.
12 Replies
- Greg_DecklerCommunity Champion
sandee - Very difficult to understand. You could try:
Debt Overdue Days >0 = CALCULATE([TotalSum],FILTER(ALL('Working ledger'),[Days overdue]>0)Otherwise, Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882
Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.- sandeeHelper I
Greg, you are right i should have provided more information for this , sorry for this.
below is an example table : i am applying to get "Total Amount" which is above then "0" Dys from "Debt Overdue Days" on client basis.
i hope i am clear this time. thanks in advance
- Greg_DecklerCommunity Champion
sandee Still not quite clear. So, if that is the source data, what is the expected output?
- AnonymousNot applicable
Total Amount=CALCULATE (SUMX(FILTER('Table',[Days overdue]>0),[Amt Due]),ALLEXCEPT('Working Ledger'[Cust Name]) - sandeeHelper I
answer is :
SUMX(FILTER('Raw Data','Raw Data'[Days overdue] >=0),'Raw Data'[Amt Due ])