Forum Discussion
Financial Reporting Matrix Profitbase NEED HELP
- 1 year ago
Hi Krijgersss
To achieve this, you need to use DAX measures that check whether the current row is a detail row or a total row, using the HASONEVALUE function. If it’s a detail row, the measure returns blank; if it’s a total row, the measure returns the sum or percentage. See below code references.
Total = IF( HASONEVALUE('Table'[Description]), BLANK(), SUM('Table'[value $]) )Percent = IF( HASONEVALUE('Table'[Description]), BLANK(), 30 // Replace 30 with your own calculation if needed )
KrijgersssY ou can create a calculated column that will show the total value for each description. Use the following
DAX
Total =
IF(
ISINSCOPE('YourTable'[Description]),
BLANK(),
SUM('YourTable'[value $])
)
You can create another calculated column to calculate the percentage of each value relative to the total. Use the following DAX formula:
DAX
% =
IF(
ISINSCOPE('YourTable'[Description]),
BLANK(),
DIVIDE(SUM('YourTable'[value $]), CALCULATE(SUM('YourTable'[value $]), ALL('YourTable')))
)
Add a matrix visual to your report and place the "Description" in the Rows, "value $" in the Values, and the newly created "Total" and "%" columns in the Values as well.
this wont work for me because i have to use the Financial reporting matrix by profit base because my total row has to be made by hand just as in excel to "add a Row after"