Forum Discussion
udian
Helper III
10 years agoDAX Calculate Percentage from Column Total
I am trying to build a tabular cube measure that will always calculate the percentage from the column total even when using a matrix. In the example attached i would like to get X % of Tota...
LaurentCouartou
Solution Supplier
10 years agoYou cannot detect what is on rows or what is on columns in DAX, so you cannot do a true "Column Total". However, something like this, may work for you:
SUM(Salse_Quantity) /
Calculate(SUM(Salse_Quantity)
,Product
,ALLSELECTED()
)