Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Dynamic Top N with columns from different tables

Hi community!. I am facing an issue that I am not getting to solve.

 

I have different sources (tables ) in my model and I need to get a table where I can filter a dinamic TopN based on different columns from the different tables.

For example: I have country (from Geography Dimension), Partner from (Partner Table) and other columns from my fact table.

 

I already created my parameter TopN Reseller and it works fine with a logic that I created if I use only columns from the same table with RANKX and ALL.

 

The problem is when I want to add a column in my dax query from a different table ,ALL function says It is not correct.

 

 

I uploaded the link to my report where you can see the Top N reseller table  (disconnected) and the 2 measures I already created

 

TopN Reseller Revenue  and TopN Reseller Revenue for Matrix (this is necessary to show correct numbers at total).

 

https://www.dropbox.com/s/lmd987gh3kxdbxe/Test4.pbix?dl=0

 

 

Any ideas how to solve this??

 

Thanks in advanced!!!

  • Anonymous's avatar
    Anonymous
    7 years ago

    Finally I could solve this adding a CROSSJOIN. Maybe it can help to someone else :)

     

    REgards.

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Finally I could solve this adding a CROSSJOIN. Maybe it can help to someone else :)

     

    REgards.