Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
04-27-2017 15:31 PM - last edited 04-27-2017 15:32 PM
I have recently come across a lot of questions in the Power BI Community where people have created a measure in a matrix, but where the Subtotals and Grand Totals do not add up.
This Quick Measure will enable them to use this specifically for Matrix or Table visuals.
Table/Matrix Totals
This is to be specifically used when using a table or maxtrix visual and you want the totals to be correct.
Name: Base value
Tooltip: The value you want to see the percent for
Type: Numerical field / measure
Name: Category
Tooltip: The category you want the overall total for
Type: Text/Date
Matrix {Category} Totals =
IF(COUNTROWS(VALUES({Category})) = 1,
{Base Value},
SUMX(VALUES({Category}),
{Base Value})
)
eyJrIjoiYmQ3M2RmNTktMTljMC00NmMxLTg4ZTYtYjU5ZWZhNzUwNjc4IiwidCI6ImQ3MGI0ZDU1LWE1OTItNDVmMi05OWYzLTI5OWFlNWVlN2FkZSJ9