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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
T4S3R
Helper II
Helper II

Filtering with filtered results of a visual

Hi everyone,

 

I want to filter a given table / visual based on a country filter. This filter will contain a single country. Based on the filter, i get the "Bestellnummer" (basically an Order Number). 

 

here is where I am stuck:

I want to display all the "Bestellnummer" that has been filtered in the top visual as well as ALL Countries regardless of what is filtered in the "Land" filter.

2020-06-30 08_53_26-Window.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best regards

Timo

1 ACCEPTED SOLUTION

Okay I figured it out. @amitchandak 

 

1. You can create a new table that copies all country values

Table 2 = SELECTCOLUMNS('Table',"Country",'Table'[Country])

 

2. Create a m*n relationship between the new table and the existing one.

3. Create a Measure with the ALL argument that Counts the Salesnumber

Measure = CALCULATE(COUNTA('Table'[Salesnumber]),ALL('Table'[Country]))

 

4. Use the Salesnumber from the first Table, the created Measure and the Country field from the Table 2.

2020-06-30 11_52_26-SampleData - Power BI Desktop.png

If you found a better / smoother solution would be highly appreciated 🙂

 

Best regards 

Timo

 

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@T4S3R , are the part of the same table or different tables. Can you share sample data and sample output in table format?

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak,

 

thanks for the fast reply, the data is within a single table. Adding a new table based on existing data would not be a problem though.

 

I created a zip file containing the sample data and desired output in an Excel file as well as a pbix file containing these sample data and further explaining the desired result.

https://1drv.ms/u/s!AsBkF7PVhL4Ekxo66NIWovGP4fW_?e=fg8Vh2

 

If you cannot open Files due to security, here is the sample Data I used:

CountrySalesnumber
DE234
DE324
DE123
DE312
EN234
EN17
EN123
EN324
EN24
EN25
EN3

 

and here is the desired outcome:

- Filter is set to DE

- Table contains just the filtered Salesnumbers from the country DE in rows but all Countries and a count of Salesnumbers.

 DEEN
23411
32411
1231 
3121 

 

Best regards and thanks fr the help as always!

Timo

Okay I figured it out. @amitchandak 

 

1. You can create a new table that copies all country values

Table 2 = SELECTCOLUMNS('Table',"Country",'Table'[Country])

 

2. Create a m*n relationship between the new table and the existing one.

3. Create a Measure with the ALL argument that Counts the Salesnumber

Measure = CALCULATE(COUNTA('Table'[Salesnumber]),ALL('Table'[Country]))

 

4. Use the Salesnumber from the first Table, the created Measure and the Country field from the Table 2.

2020-06-30 11_52_26-SampleData - Power BI Desktop.png

If you found a better / smoother solution would be highly appreciated 🙂

 

Best regards 

Timo

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors