"max"
7 TopicsMax Value based upon two columns with distant filter
TYPE ACTION MODIFICATION DATE ITEMS SPLIT_MOD ORDER_ACTION MOD_ORDER EXPECTED RESULTS ITEMS WIDGET-A BASE 01-Dec-24 57 0 0 0 WIDGET-A 56 WIDGET-A ADD BASE 01-Dec-24 57 0 1 1 WIDGET-B 75 WIDGET-A CHANGE FROM BASE 01-Dec-24 57 0 0 0 WIDGET-C 0 WIDGET-A NO CHANGE BASE 01-Dec-24 57 0 4 4 WIDGET-A CHANGE FROM CHANGE 03 01-Dec-24 57 3 0 3 TOTAL 131 WIDGET-A CHANGE TO CHANGE 03 01-Dec-24 57 3 3 6 WIDGET-A CHANGE TO CHANGE 04 01-Dec-24 56 4 3 7 WIDGET-A NO CHANGE CHANGE 04 01-Dec-24 56 4 4 8 WIDGET-B CHANGE FROM BASE 22-Dec-24 55 0 0 0 WIDGET-B BASE 22-Dec-24 23 0 0 0 WIDGET-B ADD BASE 22-Dec-24 55 0 1 1 WIDGET-B NO CHANGE BASE 22-Dec-24 55 0 4 4 WIDGET-B CHANGE FROM CHANGE 03 22-Dec-24 55 3 0 3 WIDGET-B NO CHANGE CHANGE 03 22-Dec-24 55 3 4 7 WIDGET-B CHANGE FROM CHANGE 04 22-Dec-24 55 4 0 4 WIDGET-B CHANGE TO CHANGE 04 22-Dec-24 100 4 3 7 WIDGET-B CHANGE TO CHANGE 05 22-Dec-24 75 5 3 8 WIDGET-B NO CHANGE CHANGE 05 22-Dec-24 75 5 4 9 WIDGET-C CHANGE FROM BASE 22-Dec-24 20 0 0 0 WIDGET-C ADD BASE 22-Dec-24 20 0 1 1 WIDGET-C CHANGE TO BASE 22-Dec-24 20 0 3 3 WIDGET-C DELETE 22-Dec-24 20 0 5 5 Trying to filter/group by "TYPE" Then get "ITEMS" value based upon MAX "MOD_ORDER" If "ACTION" is "DELETE" then reflect "ITEMS" value as "0" (Zero)Solved928Views0likes4CommentsCalculation Headeach
I Have this type of data And I want to run a repport like this The first repport work fine, but when i collapse the society, the cumulative to do is not the cumulative I want (The cumulative for all the society regardless the month). If you have ideas please don't hesitate to give me your feedback. Kind regards1.9KViews0likes4CommentsHow to get the Max of a Summed value based on another Column
Hi Need assistance I am trying to find the Max based on another column although I want the values to be summed depending on the depots filtered. Example Data Depot Date Time Value 1 Value 2 CAL 18-Aug 10:00AM 10 0 CAL 18-Aug 11:00AM 10 1 CAL 18-Aug 12:00PM 20 2 CAL 18-Aug 1:00PM 20 9 CAL 18-Aug 2:00PM 15 3 MARC 18-Aug 10:00AM 11 3 MARC 18-Aug 11:00AM 15 4 MARC 18-Aug 12:00PM 21 1 MARC 18-Aug 1:00PM 21 7 MARC 18-Aug 2:00PM 3 8 CAL 19-Aug 10:00AM 10 2 CAL 19-Aug 11:00AM 10 4 CAL 19-Aug 12:00PM 20 1 CAL 19-Aug 1:00PM 20 8 CAL 19-Aug 2:00PM 15 3 MARC 19-Aug 10:00AM 11 2 MARC 19-Aug 11:00AM 15 1 MARC 19-Aug 12:00PM 21 2 MARC 19-Aug 1:00PM 21 5 MARC 19-Aug 2:00PM 3 0 At a total level return Value 2 based on the Max Value 1. These Values should be summed if multiple depots are filtered. What I am trying to acheive in a matrix with a depot filter Date Time Value 1 Value 2 18-Aug 10:00AM 21 3 18-Aug 11:00AM 25 5 18-Aug 12:00PM 41 3 18-Aug 1:00PM 41 16 18-Aug 2:00PM 18 11 Total 18-Aug 41 16 19-Aug 10:00AM 21 4 19-Aug 11:00AM 25 5 19-Aug 12:00PM 41 3 19-Aug 1:00PM 41 13 19-Aug 2:00PM 18 3 Total 19-Aug 41 13Solved881Views0likes3CommentsHow to FInd the MAX date for a particluar license number
I am trying to find MAX date for a particular License number but i am not able to acheive this. Please find these for refrence _MsrMaxExpirationDate = MAXX( SUMMARIZE( DimStaffLicenses, DimStaffLicenses[LicenseNumber], "MaxExpirationDate", MAX(DimStaffLicenses[ExpirationDate]) ), [MaxExpirationDate] ) But not getting MAX date with this condtionSolved575Views0likes2CommentsCalculate max value in date range and display only top result
Hi! I have tried to search for similar cases, but can not seem to find the correct solution for creating this measure. I have two tables - Date Dim and Fact Product. Dim date has date values and Fact Product as below (example data) (The Value-column is a calculated column and I can not filter Top N by this value in the visual.) ID Product Color Value Value Date 1 ABC123 Red 300 1/30/24 2 ABC123 Red 425 1/30/24 3 ABC123 Red 150 1/30/24 4 DEF456 Blue 225 2/2/24 5 DEF456 Blue 150 2/2/24 6 ABC123 Red 200 2/3/24 7 ABC123 Red 123 1/28/24 8 ABC123 Red 500 1/31/24 When selecting a date range from Dim Date in a slicer, I would like to calculate the values for the rows with same product name and color and find which Value Date this was found. I do not want to see all products that date, or all colors - only the one that meet the requirments. Expected result from example Selected date range 12/11/23 - 2/3/24 in slicer, visual should display: Product Color Value Value Date ABC123 Red 875 1/30/24 If selected date range is 2/2/24 - 2/3-24, visual should display: Product Color Value Value Date DEF456 Blue 375 2/2/24 Any idea on how this can be achieved? 🙂Solved496Views0likes1Commentmax measure is showing infinity value
hello i created 2 measures to find the max and min percentage of another measure. the dax code to create the 2 measures is the same the only difference is in the minimum measure i used (minx) and in the maximum measure i used (max). although the 2 measures are exactly the same , the max measure it showing me (infinity ) in case the percentage is greater than 100% and the minimum function is working properly. i cant understand why it's showing inifinty and not the correct percentage this the code for the minumum percentage measure Min New Achievement % overall = CALCULATE( minX(SUMMARIZE('categories trans','categories trans'[AGENT_ID],'categories trans'[AGENT_NAME],'categories trans'[TRANSDATE (bins)],'categories trans'[base type without zeed],'categories trans'[categories summarize],'Agents list'[Position],'categories trans'[CHANNEL],'Agent Rate Key'[Agent Rate]),[achiev of overall]),ALL('Agents list'[Position]),ALL('categories trans'[categories summarize],'categories trans'[base type without zeed]),'categories trans'[achievement],ALL('Agent Rate Key'[Agent Rate]),'categories trans'[categories summarize]<>BLANK()) this is the code for the max percentage measure Max New Achievement % overall = CALCULATE( maxX(SUMMARIZE('categories trans','categories trans'[AGENT_ID],'categories trans'[AGENT_NAME],'categories trans'[TRANSDATE (bins)],'categories trans'[base type without zeed],'categories trans'[categories summarize],'Agents list'[Position],'categories trans'[CHANNEL],'Agent Rate Key'[Agent Rate]),[achiev of overall]),ALL('Agents list'[Position]),ALL('categories trans'[categories summarize],'categories trans'[base type without zeed]),'categories trans'[achievement],ALL('Agent Rate Key'[Agent Rate]),'categories trans'[categories summarize]<>BLANK()) the is the [achiev of overall] measure achiev of overall = [core achievement]+[access achiev 10%] this is the result max measure should show the value 149.82% instead of infinity note that i had to use summarize function as i want to show the min/max achievement percentage per agent, category, category type, and position and then find the maximum and minimum value percentage among all categories.733Views0likes1CommentMax Total Sales in Matrix Year and countries
Dear community, I'm trying in a Matrix to retrieve the Maximum Total Sales of all the Year by countries. Very simple in theory, but it seems more complex in reality as I need to remove the Year filter to place the measures inside the matrix. But removing the all(Year) also changes the context of my Max formula. I tried turnaround with Supporting tables, but it doesn't seem to work as I loose the Year with my technics. Any straight forward methods? Faced this problematic more than once :slight_smile: Thanks for you help! Mark LovejoySolved1.2KViews0likes5Comments