Forum Discussion
Islam
Helper V
5 years agoA problem with martix total
hey i got i matrix report in power bi project and i got some some measures but one of them doesn't display total in marrix and i dun know why like in the attached photo in totalpayback vlaues ...
- 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.
m3tr01d
Continued Contributor
5 years agoWith your first picture (showing Total Expenses column)
You can see that
Total Openings - Total Expenses < 0
So Total Payback si not showing because you explicitly
request Total Openigs - Total Expenses to be greather than 0
TotalPayback = IF([TotalOpenings]-[TotalExpenses] >0,[TotalOpenings]-[TotalExpenses])
Islam
Helper V
5 years agoso how should i modify or alter this measure to get the total of column