Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hello
I have a table containing a lot of data. These data are catagorized by a RecordtypeID.
I want to filter this table on 2 RecordTypeID.
I would like to use the Recordtype table to filter the 2 RecordType like this
-------
let
Source = Salesforce.Data("https://login.salesforce.com/", [ApiVersion=48, CreateNavigationProperties=true]),
RecordType = Source{[Name="RecordType"]}[Data],
#"Autres colonnes supprimées" = Table.SelectColumns(RecordType,{"Id", "DeveloperName"}),
#"Lignes filtrées1" = Table.SelectRows(#"Autres colonnes supprimées", each ([DeveloperName] = "A" or [DeveloperName] = "B")),
Id = #"Lignes filtrées1"[Id]
in
Id
-----
and then use this result to filter my fact table at the first step to avoid to load all the data from the source.
--------
let
Source = Salesforce.Data("https://login.salesforce.com/", [ApiVersion=48, CreateNavigationProperties=true]),
Case = Source{[Name="Case"]}[Data],
#"Lignes filtrées" = Table.SelectRows(Case, each([RecordTypeId]=??????????))
in
#"Lignes filtrées"
----------
I try using query parameters without success.
Any suggestion to do it ?
Solved! Go to Solution.
Good day BenGi,
The List.Contains function may be used. Its first parameter is a list to search. Its second parameter is the value to search for.
If your first table is called “Table 1” then you can replace,
each( [RecordTypeId]=?????????? )
by
each List.Contains( #"Table1"[RecordTypeId], [RecordTypeId] )
#"Table 1"[RecordTypeId] is a list. It is the list of values in the "RecordTypeId" column of "Table 1" .
Good day BenGi,
The List.Contains function may be used. Its first parameter is a list to search. Its second parameter is the value to search for.
If your first table is called “Table 1” then you can replace,
each( [RecordTypeId]=?????????? )
by
each List.Contains( #"Table1"[RecordTypeId], [RecordTypeId] )
#"Table 1"[RecordTypeId] is a list. It is the list of values in the "RecordTypeId" column of "Table 1" .
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
25 | |
12 | |
12 | |
11 | |
8 |
User | Count |
---|---|
42 | |
27 | |
14 | |
14 | |
12 |