"subtotal
4 TopicsValues if an other value is not blank
Hi, I have a problem. I want to delete SqMeters values when Sold has no values. What i want: I have tried different measures but if I try to write: IF([Sold], sum[SqMeters]) or Sold/Sqm = CALCULATE( sum([SqMeters], FILTER ( VALUES ( Table[Store] ), [Sold] <> BLANK () ) ) these measures always return me an error where it tells me that the memory required for this calculation exceeds the available memory or a generic error. How could I write a measure so that the SqMeters value is removed when Sold is blank? Thank you!Solved834Views0likes5CommentsRating system not giving me a total
I'm looking to create a rating system that will display the overall health of a division example; anything greater than 80% is 1 point, 50% - 79% will be .5 points, 49% and less is 0 points. i created the following dax which was able to give me the correct values, but i was not able to get the table to calculate a total, its giving me an average Overall point = VAR _Claims = SWITCH( TRUE(), [% of Claims Assigned] >= .80, 1, [% of Claims Assigned] >= .60 , .5, 0 ) VAR _Risk = SWITCH( TRUE(), [% of Risk Assigned] >= .80, 1, [% of Risk Assigned] >= .60 , .5, 0 ) VAR _Casualty = SWITCH( TRUE(), [% of Casualty Assigned] >= .80, 1, [% of Casualty Assigned] >= .60 , .5, 0 ) VAR _Property = SWITCH( TRUE(), [% of Property Assigned] >= .80, 1, [% of Property Assigned] >= .60 , .5, 0 ) VAR _Primary = SWITCH( TRUE(), [% of Primary Assigned] >= .80, 1, [% of Primary Assigned] >= .60 , .5, 0 ) VAR _Cyber = SWITCH( TRUE(), [% of Cyber Assigned] >= .80, 1, [% of Cyber Assigned] >= .60 , .5, 0 ) VAR _Total = CALCULATE(_Claims + _Risk + _Casualty + _Property + _Primary +_Cyber) RETURN _Claims + _Risk + _Casualty + _Property + _Primary +_Cyber Expected visual the total is 32.5 current visual is giving an averageSolved977Views0likes3Commentsmeasure is returing wrong total value in table visual
hi everyone i have created a measure that calculates the sales agents incentive. it's returning value per row correct but the total value in the table visual is wrong the measure is : new agent incentive = CALCULATE([new commissin sum]*max('Agent Rate Key'[Agent Rate])) new commission sum measure : new commissin sum = Sumx(Summarize('categories trans','categories trans'[categories summarize],'categories trans'[base type without zeed], "_1", [new commission calculation]), [_1]) new commission calculation measure : new commission calculation = IF([new achiev %]<= 0.8999,0, IF(([new achiev %]>=.90 &&[new achiev %]<=.9499),300-(.1*300), IF([new achiev %]>=.95 &&[new achiev %]<=.9999,300-(.05*300), IF([new achiev %]>=1 &&[new achiev %]<=1.09,300, IF([new achiev %]>= 1.1 &&[new achiev %]<=1.1999,300+(.1*300), IF([new achiev %]>=1.2 &&[new achiev %]<=1.29999,300+(.2*300),IF([new achiev %]>=1.3,300+(.3*300),0)))))))954Views0likes5CommentsCalculating a % of a "subtotal"
Hi Power BI Community, Could you advise me on the DAX function or the full syntax to use to calculate % share for a "subtotal? In the below table I want to calculate for each respective country a % share of product sold in respective country total sales (as shown in the last column). Country Product Sales (tonnes) Product Structure per Country USA Paper 12 13% USA Steel 35 37% USA Wood 47 50% UK Wood 22 39% UK Steel 35 61% Poland Paper 45 49% Poland Steel 12 13% Poland Wood 34 37% Looking forward to hearing from you. Regards AndrzejSolved592Views0likes2Comments