Hello @DeanJ,
Thank You for posting your query onto the Forum.
The solution contains two parts: First is optional, if you want to make the changes you can (It’s Recommended but again as mentioned, it’s optional). The second part is the solution part.
Firstly, there’s a problem with the data model as well as the relationship created between the “Sales” table and “Table” table.
The union which you’ve done in the “Table” table contains the “Blanks” so firstly please remove the blanks from that table. In my case, I’ve loaded the new file to provide the solution with the table name “States or Provinces” in the model by replacing the “Table” table.
Also the relationship which you had created was flowing from “Fact Table - Sales” to “Dimension Table - Table” which is incorrect. Below is the screenshot of the relationship status from your file provided for the reference -
Rather the relationship should flow from “Dimension Table - Table” to “Fact Table - Sales” in this case I’ve changed the Dimension Table to “States or Provinces” (Table which I’ve created). Below is the screenshot provided for the reference of the revised relationship status -
Now secondly, in “CurrencySelection” table I’ve added one more column with the name “Country” in it. And below is the revised formula provided for the reference alongwith the screenshot of the revised table -
CurrencySelection = { ( 1 , "USD" , "US" ) , ( 2 , "Local" , "Canada" ) }
Since relationship cannot be created between “States or Provinces” table and “CurrencySelection” because relationship between two dimension tables cannot be created and in this case, it’ll also provide an error of “Circular Dependency”. And relationship cannot flow from “Fact Table” to “Dimension Tables” and that’s why “Country” column has been added so that “Country” field from the “CurrencySelection” table can be dragged into the slicer to achieve the results.
Lastly, once the country column is added into the “CurrencySelection” table then I created a relationship between “CurrencySelection” table and “Sales” table as well based on the “Country” column. So now, the overall relationship status looks like this -
Once the data model problem is sorted (optional) and “Country” column is added in the “CurrencySelection” table, now just drag the “Currency” field and “Country” field from the “CurrencySelection” table to achieve the results. Below is the screenshot of the results provided for the reference -
I’m also attaching the working of the PBIX file for the reference. Also I recommend you to please go through the “Data Transformations and Modelling” course which is availble onto our education portal. Below is the link provided for the reference.
Hoping you’ll find this useful and meets your requirements that you’ve been looking for.
Thanks and Warm Regards,
Harsh
Dynamic Slicer Test - Harsh.pbix (83.3 KB)