vlookup
16 TopicsOne table Vlookup equivalent in DAX
Dear community, I'm trying to get shipment C013720578 to be shown in column Group for all rows. Shipment C013720578 is the main shipment, out of 4 shipments linked to invoice 1891846520. I need to do this for all Invoices in column Invoice. My first try was lookupvalue Column = LOOKUPVALUE('BRIDGE FULL'[Shipment],'BRIDGE FULL'[Invoice & main],'BRIDGE FULL'[Invoice & Shipment Type]) This wouldn't work becuase there are duplicates (in the Search Value I think), and I got this error: A table of multiple values was supplied where a single value was expected. How do I modify the formula below please? or something completely different? (hint: shipment C012293295 currently shown in column Group is the very first shipment of the entire big table) Invoice Shipment Shipment Type Shipment Type - Main Invoice & main Invoice & Shipment Type Group 1891846520 C013720583 ZT13 not main 1891846520main 1891846520not main C012293295 1891846520 C013720577 ZT11 not main 1891846520main 1891846520not main C012293295 1891846520 C013720579 ZT13 not main 1891846520main 1891846520not main C012293295 1891846520 C013720578 ZT12 main 1891846520main 1891846520main C012293295 1891846523 C013720577 ZT11 not main 1891846523main 1891846523not main C012293295 1891846523 C013720579 ZT13 not main 1891846523main 1891846523not main C012293295 1891846523 C013720586 ZT13 not main 1891846523main 1891846523not main C012293295 1891846523 C013720578 ZT12 main 1891846523main 1891846523main C012293295 1891846524 C013720579 ZT13 not main 1891846524main 1891846524not main C012293295 1891846524 C013720586 ZT13 not main 1891846524main 1891846524not main C012293295 1891846524 C013720577 ZT11 not main 1891846524main 1891846524not main C012293295 1891846524 C013720578 ZT12 main 1891846524main 1891846524main C012293295Solved721Views0likes4CommentsVLOOKUP with Unmatched Criteria
Hi, I have 2 tables. Table 2 is replicated from Table 1 with the below sample data: Table 1 Table 2 COL 1 COL 2 COL 1 COL 2 COL 3 123 A 123 A X 123 B 123 B Y 456 A 456 A Z What I would like to achieve is to vlookup Table 2 with the below criteria: T1.C1 = T2.C1 and T1.C2 <> T2.C2 End result is as per below in column 3. Table 1 COL 1 COL 2 COL 3 123 A Y 123 B X 456 A Is this possible in DAX? Thank you.Solved480Views0likes2CommentsDAX Vlookup with multiple values and contains logic
I need to filter TableB of IDs based off a slicer for one of the TableB[ColumnC] column values. Then take IDs from TableA and if those IDs are in the new subset of TableB IDs, grab TableB[ColumnB]. Here is where I'm stuck on the DAX: If more than one value is selected from the TableB[ColumnC] slicer, then the IDs can be repeated with more than one TableB[ColumnB] occurence. TableB[ColumnB] options are "Web" and "Other" if there is more than one occurence, then I need a new DAX logic if any results contain "other" then the final result is "Other". if the results only contain "Web", then "Web" To view the subset of TableB IDs from the slicer selection, I have: WEB IDs = VAR FilterSels = VALUES(FilterTable[Source]) VAR FilterPIDs = CALCULATETABLE( VALUES(FilterTable[PID]), FilterTable[Source] in FilterSels, FilterTable[Source Origin] = "Web" ) // view the list of PIDs left after source selection Var Concat = CONCATENATEX( FilterPIDs, FilterTable[PID], UNICHAR(10), FilterTable[PID] ) RETURN Concat Then I have the same DAX to check the "Other". How do I combine these IDs into one check table, then check the IDs from TableA, then run a VLOOKUP with multi results, then a if result Contains logic? Test Logic PBIX Excel Data and Calculations583Views0likes2CommentsHOW TO BRING VALUE FROM ONE TABLE TO ANOTHER TABLE IN NEW COLUMN WITHOUT TABLE RELATIONSHIP IN DAX
Hi I have two tables.. TABLE 1 (DocNo, DocEntry, DocTotal, Date, Misc...) TABLE 2 (DocNo, DocEntry, DocTotal, Date) I want to pull Doc Total of TABLE 2 into TABLE 1 for Matching DocEntry field. But there is not relationship between two tables. So how to do that with DAX?Solved1.3KViews0likes3CommentsColumn Comparison - Vlookup
I have two columns I need to compare, one column: 'MOM Stocking Report': Shows all stocked items & 'Demand Seg': Shows the complete list of purchased items. I need to compare them against one another to know which ones are stocked and which are not. As you can see the equation below, it appears to get me halfway there as the pie chart does capture the data, however I am not certain this is correct, Also when I click on the 'YES' stocked pie chart, the table shows nothing. Also, technically the 'Agreement Level' should be a 0 if 'Not Stocked' or come back with null. My relationship cardinality is at Many to Many , it wont let me change- I have removed all duplicates from Power Query. So I am basically out of ideas: My Stock or Not Equation: Stocking Agreement? = if(isblank(countx(filter('MOM Stocking Report','MOM Stocking Report'[Item Number]='Demand Seg'[ITEM NUMBER]),'MOM Stocking Report'[Item Number])),"YES","NO")1.2KViews0likes2CommentsHow to recreate this in Power BI - IF(VLOOKUP)= "var" IF(VLOOKUP)
Hello, I have this formula from Excel that I am trying to replicate in Power BI in either Power Query Editor or as a Measure. Excel formula: =IF(VLOOKUP(I92436,references!A:C,3,FALSE)="BVX",IF(J92436<references!$F$2,"BVX","WC-BVX"),VLOOKUP(I92436,references!A:C,3,FALSE)) I have 3 datasets I'm connecting to, 2 reference tables that mirror the reference tab in the above Excel and the main dataset, also mirroring the above Excel dataset. What I have so far in Power BI, I did this as a Measure, since Power Query Editor didn't give many options. Location = LOOKUPVALUE(Scraps[LOCATION_NO],'Reference Table'[Summary 2],TRUE(),'Reference Table'[Beavex transition date].[Date]) RETURN IF((Scraps[DATE_APPLIED] < 04/26/2019, "BVX","WC-BVX"),LOOKUPVALUE(Scraps[LOCATION_NO],'Reference Table'[Summary 2])) Any help would be greatly appreciated. Thank you, Dusty482Views0likes1Comment2 Tables _ Combine _ RANKX
Hi guys, I have a quick question, maybe you can help. Table 1 Code Plan Group Arrival date other column 1 CCC/a Windows 1/1/2020 2 CCC/a Windows 1/1/2020 3 CCC/a Lock 1/1/2020 101 CCC/a Lock 1/1/2010 203 CCC/b Door 2/1/2010 205 CCC/b Door 2/1/2010 206 CCC/b Door 2/1/2010 205r BBB/a 2/1/2010 Table 2 Plan Group Class Sold Date CCC/a Windows Hard 1/1/2000 CCC/a Lock Medium 1/1/2005 CCC/b Door Medium 20/04/2020 What I can do is to create table visual like this Code Class Sold Date Plan 203 Medium 20/04/2020 CCC/b 205 Medium 20/04/2020 CCC/b 206 Medium 20/04/2020 CCC/b What I would like to do is to do this: Code Class Sold Date Plan 1 Hard 1/1/2000 CCC/a 2 Hard 1/1/2000 CCC/a 3 Medium 1/1/2005 CCC/a 101 Medium 1/1/2005 CCC/a Could you help me with that please ? Plan is calculated column with Rankx.1.1KViews0likes2CommentsHow to Pull in Value from one table to another to perform a test (Vlookup - like within PBI ?)
I'm not entirely sure if I am wording the subject properly. Essentially, I have one query from a ticketing data that has: Table 1 TicketDuration (ie 60 minutes, 45 minutes, 32 minutes, 75 minutes, 10 minutes, 5 minutes, etc etc) SLAType (ie 001, 002, 003, 001, 001, 003) In another table I have Table 2 SLAType (ie 001, 002, 003) SLADuration (50 minutes, 60 minutes, 10 minutes) Where Table 2 has the varying types of SLA's a ticket might have (ie Urgent, non urgent, etc) What I am trying to do within Table1 is be able to tell if each TicketDuration < SLADuration and, if so, value is TRUE (ie SLA Met) otherwise value is FALSE. I would typically do this, in Excel, by doing a vlookup on Table 1 to pull the SLADuration Value from Table 2 and then create a column that says =IF(TicketDuration < SLADuration, True, False) I don't know how to reference Table 2 from Table 1 to do this - or if I even have to with there being a relationship between the two that I defined (SLAType) I'd like to create a stacked bar chart that shows total amount of tickets with comprised of those that met SLA and didn't). I'm a SUPER novice at PBI - pretty comfortable with Excel. Any help would be much appreciated. Thank you in advance. RobSolved449Views0likes1CommentTo get Total in between categories.
Hi, I have a table like this in Sheet 1- And from the sheet 1, I want to create Page 2 in Power BI which is like in Sheet 2 below- Difference is here the Total is populated through Sum formula. Values have been achieved through Vlookup- How I can do the same in Power BI by Exporting Sheet 1 and creating Sheet 2 from Sheet 1. Thanks, Amit Kumar814Views0likes1CommentLOOKUPVALUE - Compare Text Values in columns to get a date value
Hi... Jihwan_Kim Fowmy amitchandak PaulOlding I am really hoping someone can help me. I have a table in power BI. Column A has the unique Project Number, Column B has an Activity ID. that is unique within the project but not unique otherwise; Column C has the actual start date of the activity in column B; Column D has the predecessor Activity ID (unique within the project but not unique otherwise). What I am trying to do is compare Column D (Predecessor Activity ID) to Column B (Activity ID) within the same project (Column A) and return the Actual start date of the Predecessor Activity in Column E.... I cannot figure of the proper DAX expression and everytime I try it tells me it can't retun a date based on text columns. This is the result I am looking for but in PBI.... Any help would be really appreciated!1.8KViews0likes2Comments