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.
Islam In powerbi, there are many relationships between multiple tables which determines the output. So it is possible that there might be some discrepency in the relationship between tables which resulting in mismatch in the output. I would suggest you to check the relationship between date table and other table which sometime is main cause of error or issue.
Let me know if you need further assistance on this. You may try sharing your powerbi file or some sample data to test it at our end.
- Islam5 years ago
Helper V
ok i'll check it
- Islam5 years ago
Helper V
I'll try it right now
- Islam5 years ago
Helper V
RequiredToPay = IF([TotalExpenses]-[TotalOpenings] >0,[TotalExpenses]-[TotalOpenings])this measure is working fine but this oneTotalPayback = IF([TotalOpenings]-[TotalExpenses] >0,[TotalOpenings]-[TotalExpenses])give me the values without totals