filter multiple column
8 TopicsCountRows where column A contains a string and column B = a string.
I have been driving myself crazy with this, and I've looked around and asked colleagues and I can't seem to get there. I am used to Power Apps syntax, but not DAX so I really need some help. I have a table with many columns, two of which are important for a measure I am trying to create: Table = Project Overview Column 1 = Project Name Column 2 = CP I need to get the number of rows where: Project Name contains "Mission" AND CP = "Missing CP" I got this far: calculate( COUNT( 'Project Overview'[Project Name] ), CONTAINSSTRING('Project Overview'[Project Name],"Mission")) But I can't figure out how to add a second condition in my filter. Can anyone help?4.9KViews0likes7CommentsDAX with double tables
Hello everyone, i have a MOM consumption data, I want to choose the month I want to analyse and the period "X" for which I want to compare ( last 30/60/90 days) "Y". All Dax works fine however if I want to get the value of only the new items for "X" compared to "Y", it compares it to the data in all the other months. I'm ready to clarify if needed. Thank you in advance.542Views0likes2CommentsDouble filter in same table/column
Hi, I have an Excel File with a list of aircraft with the main characteristics of each one (airline, model, manufacturer, age...). I want to identify, per model, which is the position of each aircraft per age: e.g. for all A320 if aircraft X is 19.8 years old, how many aircraft are older than it (that is the order of age filtered by model). I wouldn't like to use an auxiliary table as I want to further elaborate on this table. When it comes to calculate the number of aircraft per model I use the following formula: Aicraft per Model = CALCULATE(COUNT(Table 'Aicraft Name'), ALLEXCEPT ( Table, Table 'Aicraft Model')) And it works, but I do not know how to calculate the next step, that would be the number of aircraft within the list that are older than the row/aircraft that is evaluated. I have tried the following without success: Aicraft Age Order = CALCULATE(COUNT(Table 'Aicraft Name'), FILTER( ALLEXCEPT ( Table, Table 'Aicraft Model') , Table 'Aicraft Age' > Table 'Aicraft Age' )) Could someone help me with this? Thank you very much! ChocapsuroSolved633Views0likes2CommentsFilter depends on different column value
Hi, what I am trying to do is to filter 'Inventory Material DC'[IMDC DC], based on 'Distributor'[DIST Country]. 'Distributor'[DIST Country] should be equal to "Poland" or "Denmark". 'Inventory Material DC'[IMDC DC] can be all if 'Distributor'[DIST Country] is not "Poland", if "Poland" then 'Inventory Material DC'[IMDC DC] should be different than 100. Is it possible to create such a filter? *I am using PowerBI Report Builder. DEFINE VAR yesterday = TODAY () - 1 VAR from_date = TODAY () - 28 MEASURE 'Inventory Measures'[Operational Inventory Total] = CALCULATE ( [Operational Inventory], FILTER ( ALL ( 'Inventory Date' ), 'Inventory Date'[INVD Date] >= from_date && 'Inventory Date'[INVD Date] <= yesterday ) ) EVALUATE SUMMARIZECOLUMNS ( 'Distributor'[DIST Country], 'Inventory Material DC'[IMDC DC], FILTER ( VALUES ( 'Distributor'[DIST Country] ), ( 'Distributor'[DIST Country] = "Poland" ) || ( 'Distributor'[DIST Country] = "Denmark" ) ), "Operational Inventory Total", 'Inventory Measures'[Operational Inventory Total], )428Views0likes1Commentsum filtering by multiple criteria using calculate and contains.
hello, I am trying to create a measure that calculates the sum of a column based on the amount 3 months before. I have managed to calculate it with the following measure creating a reference date column that shows the 3 previous month date WR SUM CLAIMQ = CALCULATE ( SUM ('WARRANTY RATE'[CLAIM Q]), FILTER ( ALL ( 'WARRANTY RATE' ), CONTAINS ( VALUES ( 'WARRANTY RATE'[DATE_REFERENCE] ), 'WARRANTY RATE'[DATE_REFERENCE], 'WARRANTY RATE'[DATE] ) ) ) my problem is that i need to add an extra filter to the measure to do the calculation by countries( present in a column in the same table ). so that it can be filtered using a slicer in the report. can someone help me to find a way to include this filter?Solved1.1KViews0likes1CommentSum in Matrix visual with filters from multiple tables
I will try to put my question out again as there were some issues with posting when I updated it. I am trying to sum data in a Matrix with filters from multiple tables and am unable to determine the correct measures to use. What I am looking is result similar to the below: I am unable to share the pbix, below is a view of the four separate tables of data I import into Power BI: The data structure and measures I have tried so far: 1) Count ECountry = Calculate(DistinctCOUNT(Sheet1[ECountry]),KEEPFILTERS(Sheet1)) 2) Epic Size = Calculate(Sum('Sheet1 (4)'[ESize]), KEEPFILTERS(Sheet1),('Sheet1 (4)')) 3) Epic Size Alloc = Divide([Epic Size],(SUMX(Sheet1,Sheet1[Count ECountry]))) Any help with calculations or guidance on data structure is much appreciated! Melody628Views0likes0CommentsSpecific Date range for projects
Hello! I hop my explanation does this justice. I am doing a Cost Savings Projects analysis. It is a manufacturing plant, and we are changing aspects of the production to lower cost. For example, Project 101 may be changing a bag type and Project 102 may be changing labels. Each project starts a different day and runs for 52 weeks. so one project may be 3/1/2020-3/1/2021 and the other will be 6/2/2020-6/2/2020. What I need to be able to do is associate the Project ID with its product SAP and then have it only pull that project during the 52 weeks that the project is running, and anything outside of that specific range to be 0 or blank. But I have only been able to filter using the date filter, but i need it to filter specifically to the Project ID itself since they all have different savings goals and date ranges. Thank you !!!!1KViews0likes3CommentsAverage per category
Hi I have data in the following form along with the expected output column (section_1 average per id): Id QuestionID score section section_1 average per id 1 a 2 1 (2+1)/2=1.5 1 b 1 1 (2+1)/2=1.5 1 c 3 2 3/1=3 2 a 3 1 (3+2)/2=2.5 2 b 2 1 (3+2)/2=2.5 2 c 1 2 1/1=1 Each question belongs to a section. I would like to use DAX to calculate the average score section for each id in the table (end column above). I have tried using SELECTCOLUMNS(CALCULATETABLE(data, data[Section]=1, data[ID]=EARLIER(data[ID])),"Score",[Score]) to filter out the single column I need but AVERAGE won't accept a table expression like this. Can anyone help? TIASolved1.4KViews0likes1Comment