column total
4 TopicsHandling Debits and Credits in the same table
Hi, I have a table that handles debits/credits in the same column based on a Sales Order No. I can display the SO amount (field called Amount) based on the SO No but also on a filtered level based on another field Applied To Order (which contains the Sales Order No, but will always be a negative value. When I display the Sales Order No, it will only display the full value, not the value minus the credit. I need to figure out a way in DAX for my model display the debit value, minus the credit value, and only if there is a credit value (most of the time, there will not be). I've added a conditional column called Credit/Debit if that helps? Anyone help me out on this or point me in the direction of the DAX function that I should be invoking so I can investigate further? Thank you.Solved3.6KViews0likes10CommentsMarket Share Percent In Ribbon Chart - % Of Column Total
We are trying to mimic The 100% stacked bar chart's % of column total calculation on a ribbon chart. So essentially a market share % of total calculation for each date we have. We've tried creating a measure that we thought would work but it has not: AllDivisionTracking := CALCULATE ( [TrackingNumbers], ALL ( Divisions ) ) PercentOfTotal := DIVIDE ( [TrackingNumbers], [AllDivisionTracking] ) This measure does not seem to work when inserted as the measure on a ribbon chart. The ribbon chart seems to make this calculation over the entire date range instead of limiting it to each day as we would have expected.Solved5.6KViews3likes3CommentsMeasure to Sum specific rows and the subtotal/grand total to still display the Actual Total Sales
Hi Power BI Community, I have a table displayed like below, with column definitions as follows. Tot Sales = Sum(Sales) My Formula = Is my attempt to get the expected result. Expected Result = How I want the calculation to work. Here is the DAX I wrote SUMX(SUMMARIZE(SalesFact,'Territory'[Territory ID],'Product'[Sales Role]),IF('Product'[Sales Role]="Cat 1 Rep",CALCULATE([Total Sales],'Product'[Cat 1 Product]="YES",ALL('Product')),IF('Product'[Sales Role]="Cat 2 Rep",CALCULATE([Total Sales],'Product'[Cat 2 Rep Product]="YES"),CALCULATE([Total Sales],'Product'[Cat 3 Rep Product]="YES")))) The above formula gives me the expected result against the Cat 1 Rep row, but fails to get the expected sub total and grand total. The field "Cat 1 Rep Product" in above formula is a flag which identifies products from product table that fall into Cat 1. "Cat 2 Rep Product" and "Cat 3 Rep Product" are similar columns. What I want is - Sum the results for Cat 1 Rep row and Cat 2 Rep row and display it against the Cat 1 rep, other rows shouldn't be impacted. Also, I do not want this manipulation to impact the Column subtotal or grand total and should display the actual total that is (Cat 1 Rep Product + Cat 2 Rep Product + Cat 3 Rep Product) and NOT ( (Cat 1 Rep Product + Cat 2 Rep Product) + Cat 2 Rep Product + Cat 3 Rep Product). Is this possible? Thank you all!Solved3.3KViews0likes1CommentRow level calculation, with variable elements, can't get total right. HELP!
I've been working in DAX for a while, but am still a neophite. I'm sure this is a no brainer for you guys, but I am STUCK! I need a measure to calculate a Cost by Customer. The basic calculation is Revenue * Margin = Cost. The challenge is, each customer may have their own Margin, or not, and each division (customer is part of division) has a slightly different calculation. The rules are: Division A: Cost = Revenue Division B: Cost = Revenue * Customer Specific Margin; if cust doesn't have own margin, use division margin So table looks like this: Customer Division Margin Revenue Cost (Desired outcome) Joe A 50 100 100 Bob B 25 100 25 Sue B 100 30 * Division B Margin = 30 I've been able to get the row level calculations done several different ways, but I haven't been able to get a total of all the cost (column total) to work. I appreciate the help guys. I use this forum CONSTANTLY! HUGE HELP. I just couldn't figure out how to find this problem in one of the previous threads.Solved945Views0likes2Comments