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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
kasife
Helper V
Helper V

Working with bridge table

Hello everyone in the community

 

Guys, I'm having great difficulty getting a result, could anyone help or guide me? I've been trying for days and I can't get what I want

 

I have the following model

kasife_1-1702790799107.png

This is what my page looks like: I have a slicer the month and year (MÊS | ANO) and project (Nome  do Projeto Original)
My Sales card (Repasses realizados), Total number of brokers (contagem de corretores) and my matrix (Detalhamento das Equipes) with the name of the project and the broker

kasife_2-1702790849196.png

 

 


I am using the following measure to distinctly count the total number of brokers

 

COUNTROWS (
    FILTER (
        ALL( _projetos_corretor ),
        _projetos_corretor[Nome Projeto Reaal] = SELECTEDVALUE(projetosReaal[Nome do Projeto Original]
    )
))

 

In my project slicer I am using the column from the Project table.

When I select the project it brings me the corresponding count. 
When there is no selection, it should return the general total of brokers, but it does not return any value

kasife_4-1702791394341.png

When I select the date, it doesn't bring any value either. It should return me the count of brokers according to the start and end date of each project in the project table
How could I do this?

kasife_5-1702791466850.png

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

that's not yet a data model. Please read about Star Schema, facts and dimensions.  A Bridge table is usually an indication that something's not right with your data model.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

that's not yet a data model. Please read about Star Schema, facts and dimensions.  A Bridge table is usually an indication that something's not right with your data model.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.