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
Anonymous
Not applicable

Filter not showing what expected

Hello all. I have two tables and one filter. The first table shows information about product value for every year and the second table shows countries that exported selected products from the first table. The filter(shows greater than values, in this case, it is showing values greater than 10) applies only to the first table. My current problem is I set the filter to show me values greater than 10 and it is working however if you noticed in the 1st table for the product "240220" showing 77.4, while the second 100.8. so the second values are correct. As I understood in the first table total values are based on values greater than 10. How can I make that filter that must apply to the total? in this case for the product "240220" should show me 100.8.

Безымянный.png

8 REPLIES 8
v-xicai
Community Support
Community Support

Hi @Anonymous   ,

 

Do the suggestions from engineers make sense? If so, kindly mark the proper reply as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.

 

Best regards

Amy

v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

To get matched values when make filters, you may make sure the Cross filter direction of the two tables is Both instead of Single, which will take the two tables treated as a single table.

 

Best Regards,

Amy 

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Amy ( @v-xicai ) is right - a cross filter direction of both can help with filtering and treating two tables as one, but I do not recommend this solution for a 1 to many relationship.

Please @Anonymous can you share more details about your data model relationships so we can target our solutions, ideas and advice better?

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

AllisonKennedy
Super User
Super User

You may need to create a measure for the $ calculation that uses the ALL() function to calculate the total for all prices.

Total = CALCULATE(SUM(column), ALL(filteredvalues))

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Anonymous
Not applicable

Thanks for your reply however it did not work for me

PaulDBrown
Community Champion
Community Champion

@Anonymous 

How is you model set up and what fields are used in each table (from dimension tables?) 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Anonymous
Not applicable

I used Import values for both, and product ID for the first and country for the second

@Anonymous we need a lot more information please to be able to help you out.

 

Your visualizations have more than just one field in them - what other columns have you used in the visualizations? What measures and can you please paste the exact DAX you're trying for these measures? 

 

Finally and VERY IMPORTANT - what does the raw data model look like - screenshot of Model view will help if we can see all/most columns of each table and we'll need to know what field relates the two tables. 


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

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.