Forum Discussion
A problem with martix total
- 5 years ago
Islam , as mention at the begining, the reason for this os because in total row the difference is in minus and there is no result. The logic is as on detail row, if openings<expense, return 0.
So in order to have "sum" in totals, you need to use IfHasOneValue.
Attached file.
Example:
Regards,TotalPayback New =var _filterArea = FILTER('Table','Table'[Openings]>'Table'[Expenses])RETURNIF(HASONEVALUE('Table'[YearMonth]),IF([TotalOpenings]-[TotalExpenses] >0,[TotalOpenings]-[TotalExpenses]),SUMX(_filterArea,'Table'[Openings]-'Table'[Expenses]))
Nemanja Andic
Attached file.
Sure here all info u need
- nandic5 years ago
Resident Rockstar
Islam , as mention at the begining, the reason for this os because in total row the difference is in minus and there is no result. The logic is as on detail row, if openings<expense, return 0.
So in order to have "sum" in totals, you need to use IfHasOneValue.
Attached file.
Example:
Regards,TotalPayback New =var _filterArea = FILTER('Table','Table'[Openings]>'Table'[Expenses])RETURNIF(HASONEVALUE('Table'[YearMonth]),IF([TotalOpenings]-[TotalExpenses] >0,[TotalOpenings]-[TotalExpenses]),SUMX(_filterArea,'Table'[Openings]-'Table'[Expenses]))
Nemanja Andic
Attached file.- Islam5 years ago
Helper V
Really awesome sir but if u take a closer look at the requiredtopay column total it calculated by subtracting totalpayback total sum from requiredtopay total sum
40812628
- Islam5 years ago
Helper V
Anyway I'll check if i can do it myself and if so I'll let you know
Really appreciate it sir
- Islam5 years ago
Helper V
excuse me sir can i send u the pbix file ?
- nandic5 years ago
Resident Rockstar
Yes, you can send the file and i will take i look.