Forum Discussion
lcasey
Post Prodigy
9 years agoWhy wont the same formula work?
Hello, I have a table I created called countries, it is a simple formula. Countries = Distinct('Transactions'[COUNTRY]) This works perfect--No issues and yes there are multiple AND duplic...
- 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
Anonymous
9 years agoNot applicable
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]) )
Anonymous
9 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.