Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
iooab1-
Frequent Visitor

Visual and page filters not working

wow, I can't upload my project file here..... huh this is going to make things difficult

 

Two tables with a relationship.  Table A has an amount column and I have a donut chart summing that amount by name.

 

Table B is a related table.

 

Table B has a column that I wish to filter the donut chart on

 

I only get 1 result  This is the generated DAX I caputed from Performance Analyzer

 

 // DAX Query
DEFINE
  VAR __DS0FilterTable = 
    TREATAS({"A"}, 'Table2'[Type])

 

it goes south here as this returns just 1 record so the TOPN is performed on a table of 1
  VAR __DS0Core = 
    SUMMARIZECOLUMNS('Table1'[Name], __DS0FilterTable, "SumAmount", CALCULATE(SUM('Table1'[Amount])))

  VAR __DS0BodyLimited = 
    TOPN(1002, __DS0Core, [SumAmount], 1, 'Table1'[Name], 1)

EVALUATE
  __DS0BodyLimited

ORDER BY
  [SumAmount], 'Table1'[Name]

 

I'd upload the project because that would be simplier but I see no upload link.

 

1 ACCEPTED SOLUTION

I changed the properties on the relationship.  The value for Cross Filter Direction was changed to "Both" and configured the filter for both directoins (checkbox) and now appears to be functioning.

View solution in original post

3 REPLIES 3
TomMartens
Super User
Super User

Hey @iooab1- ,

 

upload the pbix file to onedrive or dropbox and share the link.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

I changed the properties on the relationship.  The value for Cross Filter Direction was changed to "Both" and configured the filter for both directoins (checkbox) and now appears to be functioning.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.