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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
gumis_rulez
Helper I
Helper I

Getting customers ids based on another dimension table

I have following model:

 

aaa2.JPG

 

i want to create following page:

 

aaa1.JPG

By choosing on the slicer salesperson_id which comes from dimension table dimEmployee, I want to show all customer_id from another dimension table dimCustomers. I have managed to create a measure which shows number of customers:

 

test = 
CALCULATE(
    DISTINCTCOUNT(
        dimCustomer[customer_name]
    ),
    CROSSFILTER(
        fctSales[customer_id], dimCustomer[customer_id], Both)
)

 

but how to receive a list of customers to use in matrix?

https://drive.google.com/file/d/1t1aXOMxzGNdLFCVuDi8eMv2-bo9w7tcQ/view?usp=sharing 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @gumis_rulez 

 

Thanks for the reply from ray_codex , please allow me to provide another insight:

 

@gumis_rulez , do you need the table to display data based on the options selected in the slicer? If I understand correctly, please refer to the following test.

 

You can change the Cross-filter direction of the dimCustomer table and fctSales table to both.

vxuxinyimsft_0-1725505942936.png

 

Output:

vxuxinyimsft_1-1725506116787.png

 

Best Regards,
Yulia Xu

 

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @gumis_rulez 

 

Thanks for the reply from ray_codex , please allow me to provide another insight:

 

@gumis_rulez , do you need the table to display data based on the options selected in the slicer? If I understand correctly, please refer to the following test.

 

You can change the Cross-filter direction of the dimCustomer table and fctSales table to both.

vxuxinyimsft_0-1725505942936.png

 

Output:

vxuxinyimsft_1-1725506116787.png

 

Best Regards,
Yulia Xu

 

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

ray_codex
Resolver II
Resolver II

Put a filter on your visual solves this:

ray_codex_0-1725454490766.png

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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