IBM domino designer , dblookup - xpages

I have question about using #DbLookup in xpages.
I have one simple nsf database looking like this :
Name | Values
TimeZones | +1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 etc.
Countries | Germany Ireland England Spain Slovakia Czech etc.
Problem is i dont know how to use #DbLookup to get only values of timezones or countries. I tried this and it did not work :
#DbLookup(#DbName(), "KeywordLookup", "TimeZones", "Values");
Where KeywordLookup is the name of my view.
But when i tried to use
#DbColumn(#DbName(),"KeywordLookup",1);
it works nice. In my combobox i can see
TimeZones
Countries
Can anyone give me advice?
UPDATE #1:
my view "KeywordLookup" uses form "keywords" which looks like
Name:
-Type Text-
Values:
-Type Text-
And the view contains just two columns :
Name - mapped to Name
Values - mapped to Values
And i create document in notes and filled with :
Name :
Countries
Values :
Germany
Ireland
Slovakia
etc.

Sort your first columnn in that view. And just as a useful reminder, pick a more descriptive name for your fields. I'm afraid 'Name' or 'Values' are keywords in Domino environment. Same goes for 'Date', 'Key' etc.

Related

Matching Columns in Excel: different files

I have two excel files, One with product ID and description in English. Other one with the same ID and Description, but in French, but the IDs are not in same order in both files, they are listed randomly but both have the same IDs. (there are over 10000 products in the list.)
I want a formula such that I can find all the products by it's ID, Match ID with the IDs in the second file (the French one) and paste all the French description right beside English description column.
How can I make this process faster, I would have done it manually but there are 10,000 items in the list so it would take a lot of time for me.
You can Use Index- Match
Where your ID is in Column A and Description is in Column B
=INDEX([Book2.xlsx]Sheet1!$B:$B,MATCH(A1,[Book2.xlsx]Sheet1!$A:$A,0),1)
Or you could use Vlookup IF only two Columns involve
=Vlookup(A1,[Book2.xlsx]Sheet1!$A:$B,2,0)

PowerBI multiple values in same column displayed as table format with no data

I'm trying to create a PowerBi dashboard from SharePoint list. The problem is one of the column contains "People or Group" where it intakes multiple names. This column is read as a table in PowerBi and when expanded, returns empty though there is data. Similarly, I have another column with "People or Group" but it only takes one name which works fine when expanded returning values.
Sample Data
ColA ColB ColC
1 John Doe John Doe, Tim Apple
2 Tim Apple Tim Apple, Steve Cook
3 Steve Cook Tim Apple
From above, ColB works fine for data extraction but ColC return empty without any data.
I've attached a PowerBI screenshot for reference .
I was able to figure this. I used the column FieldValuesAsText to convert all the lists and tables as regular text without any issues. This column converts multiple columns at the same time, thereby saving a lot of time too...

Excel: View clients who don't have a product

I have a table of clients and the products that they have purchased.
I'm looking for a simple way of being able to filter to view all clients who don't have a certain product.
Client | Product
------ | ------
John | A
John | B
John | C
Kate | A
Kate | B
Kate | D
Mary | A
Mary | D
With the above example I would want to look for which clients do not have Product -> C, the return I'm after is Kate and Mary.
I've tried looking at this in a few different ways but I feel I'm over complicating it. I was creating a table to return who has the product then doing a lookup from there against another table of all users to then find out who wasn't in the first list.
I tried using a pivot table to get what I was after but I'm only able to return who has the products rather than who doesn't, also filtering product C from the pivot table does not help as the Client still shows up having other products.
I'm hoping there is an easier way to do this.
Your assistance is appreciated.
Dane
COUNTIFS should to the trick here.
You have one cell where you enter the product to look for. Then you add a column to your table that checks if the client does not have that product.
=COUNTIFS([Client],[#Client],[Product],referenceToTheProductToLookFor)=0
This will count the rows where
the entry in the column "Client" is the same as the value in the column "client" in the current row ([Client] references the whole column, [#Client] only the current row's value of that column)
the entry in the column "Product" is the same as the one entered in your input cell
and checks if the resulting count is 0. If it is 0 the cell value will be TRUE, otherwise it will be FALSE.
If you want to avoid having to make two steps each time you change the product you are looking for (1. enter the product, 2. update the filter on the table) you could use the worksheet's On_Change macro to detect changes to the product code and then automatically update the filter on the table.

Filtering Documents in a Notes View by Date?

I have a Notes view that has 2 columns (Name | Due Date). There can be multiple documents with the same name but with a different due date. So the view can look like:
John Smith | 06/13/2014
John Smith | 07/13/2014
Jane Doe | 12/31/2014
Is there a way I can setup my view to only one document per Name with the soonest due date? So that John Smith would only show once with John Smith | 06/13/2014. In the name column I tried wrapping it with #Unique(Name), but that didn't seem to work.
Thanks for any tips.
No, that is not possible. View's selection formula can only work on document itself. It can't #DbLookup() to check if there is a "sooner" document for current name.
You can categorize the view by first column name and sort second column ascending. Then you will always see the soonest date right below the name.
John Smith
..... 06/13/2014
..... 07/13/2014
Jane Doe
..... 12/31/2014
Another approach is to set a flag "soonest" as an item/field in document. Whenever you save a document you would test if current document gets or looses flag "soonest" for current name and set/delete the flag in related documents. Then you could select only documents with this flag in your view. But, you have to decide if the extra effort is really worth it.

Need Help in Excel Pivot Table

I am working on Excel 2007 and I need help with creating a pivot table.
My excel sheet looks some what like this
Name Date Team Location
John 2011-05-01 Project NY
John 2010-10-12 Information NY
John 2010-02-04 Development CA
Sam 2011-05-01 Development CA
Sam 2010-01-01 Project NY
Sam 2008-01-01 Programmer NY
Brad 2011-04-03 Project NY
Brad 2009-01-01 Info NY
Brad 2007-01-01 Designer CA
Now, if I create a pivot table based on the data above, and put a filter on the "Date" to see who worked at where aka "Location" under what "Team", let's say between "2010-01-01 to 2011-12-31"
Then it will count "John" three times, "Sam" twice and "Brad" once. And total of 6 employeses working during "2010-01-01 to 2011-12-31"
Now I want to remove these duplicates so that if "John" is counted once, he won't be counted anymore, even if he switched to different "Team" or "Location" so I can count for the total number of employees during "2010-01-01 to 2011-12-31" without any duplicates.
I understand that if I want to edit the pivot table and create unique value to remove these duplicates, I need to add another column. But I need help creating this column.
Could anyone help me out here?
Thanks a lot guys!
Anyway, tell me if this would work for you.
1) Sort your spreadsheet by 'Name' first and by 'Date' second.
2) Add an extra column called 'Old Position'.
3) Go down the sorted list and for every name with duplicate rows that you encounter, leave the first occurance alone, but add an 'X' to the column 'Old Position' for all of the older duplicates.
Now you can filter by keeping rows that have their 'Old Position' column not equal to 'X'. This should give you just the most recent positions for all employees.
As long as there are not two distinct employees with the exact same name, I think this should work (otherwise try to use an employee id or somethings unique to each individual instead of their name).
Put "Date" in report filter, "Name" in row labels, set filter for "Location" as "NY" then "Location" can in placed in either report filter or row labels depending on how you want to see data.

Resources