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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
kasife
Helper V
Helper V

Salesperson count by project

hi Guys,

How can I adjust my measurement to obtain the number of brokers that correspond to each project considering the beginning and end of the project
I have the following model.

kasife_0-1704676701555.png

My measurement is not considering the selected project

 

contagem = 
VAR vMinData = MIN(d_calendario[Date])
VAR vMaxData = MAX(d_calendario[Date])
VAR InicioProjeto = MAX(projetosReaal[Inicio do Projeto])

RETURN
CALCULATE(
DISTINCTCOUNT(_corretores[Corretor Ajustado]),
            InicioProjeto <= vMaxData &&
            _corretores[data_cad] < vMaxData &&
            _corretores[Data de saida] <= vMaxData
        )

 

 

1 REPLY 1
Ashish_Mathur
Super User
Super User

Hi,

Share some data to work with and show the expected result very clearly.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors