Forum Discussion
Why wont the same formula work?
- Anonymous9 years ago
You could do it in Power Query with something like this:
let Source = Transactions, KeptOnlyCountryAndRegion = Table.SelectColumns(Source,{"Country", "Region"}), RemovedBlankCountries = Table.SelectRows(KeptOnlyCountryAndRegion, each [Country] <> ""), RemovedDuplicateCountryandRegions = Table.Distinct(RemovedBlankCountries) in RemovedDuplicateCountryandRegions
Your "Country Formula" is a Table, and the "Region Formula" is a measure.
Try change your "Distinct Countries Table Formula" to this:
Countries = Distinct( SELECTCOLUMNS(Transactions;"Country Slicer";[Country];"Region Slicer";[Region]) )
- Anonymous9 years agoNot applicable
Oops, yeah that's a measure not a column. I mixed up the icons in my head. Still, either way it's not a table.
- lcasey9 years ago
Post Prodigy
Hello,
This worked as expected, But I am still getting a relation error due to there being Blanks in the data, Unfortunatly, I cant change the dataset and the dataset contains years of previous mispellings etc. The Current Data though is always correctly entered.
Is there a way to filter out Blank Countries as I need to relate tables based on countries? I am trying to Avoid creating a manual table that needs to be updated.
Countries = Distinct( SELECTCOLUMNS(Transactions,"Country Slicer",[Country],"Region Slicer",[Region]) )