calculate function
3 TopicsUse a different denominator for the dax computaton of the % of Grand Total
Dear Experts: I got the following Data Model: Tables: Product Category - Product SubCategory (1:n relationship) Product SubCategory - Product (1:n relationship) Product - Sales (1:n relationship) I created a calculated column in the Product Category Table that shows me the percentage of Grand Total Sales for Each Category. % of Grand Total Sales = Divide(SUMX(RELATEDTABLE('Sales'), 'Sales'[SalesAmount]), CALCULATE(SUMX(RELATEDTABLE('Sales'), 'Sales'[SalesAmount]),ALL('Sales'))) The dax formula works just fine. I am just curious how the Denominator could be formulated differently, i.e. using some other DAX-function instead of Calculate. Is this possible? Help is very much appreciated. Thank you very much in advance. Kind Regards, AndreasSolved526Views0likes1CommentMeasure to Calculate Percentage
Hi Team, Good day, all, I am trying to calculate a percentage of data using a measure in the matrix table format. Vendor Name the Row, In the values, I have M category and M %(this is the field I am trying to work) While I am trying this in the matrix table option in the report, I couldn't able to bring the M category total value divided by the particular M Category. Because the same M category is used in the column, the total value is categorized in the M % calculation. It is stopping me from pursuing further. Any ideas are highly appreciated, thanks. Thanks ShaGunaSolved2.2KViews0likes9CommentsDAX
l am trying to use below VAR value in the Calculate function but not working LY YTD Sales = VAR MM=month(Max(SalesDataDates)) -- store max date from sales data table VAR YY=Year(Max(SalesDataDates)) -- store max Year No from sales data table Return Calculate(CY YTD Sales, dateTable[MonthNo]<=MM&&dateTable[YearNo]<=YY) Somebody please help487Views0likes1Comment