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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Nestor_Moreno
Frequent Visitor

Counting Measure Results

Hello community,

 

I need count the results of a measure, i try to explain my problem.

 

I have 3 tables:

  1. Reg_Beneficiario_Empleabilidad (this is a personal information of workers)
  2. Vinculacion (this is a information about work, when start, where, what he doing, etcc )
  3. Medidas (this is a measure table)

I need to know how many workers stay in the work after 90 days.

 

In my measure table (Table3), i have 3 measures:

  1. Date to starts to work:
    • Fecha_Vinculacion = MAX(Vinculacion[Fecha_Vinculacion_Ok])
  2. Date to finish to work:
    • Fecha_Finalizo_Proceso = MIN(Reg_Beneficiario_Empleabilidad[Fecha_Finalizo_Proceso_Ok])
  3. Working Days:
    • Dias_Vinculación = IF(ISBLANK([Fecha_Finalizo_Proceso]),VALUE(TODAY())-VALUE([Fecha_Vinculacion]),VALUE([Fecha_Finalizo_Proceso])-VALUE([Fecha_Vinculacion]))

I Show this in a table:

 

Table.PNG

 

Now, my problem is, that i need to know how many workers stay in the work after 90 days. 

 

How i can count how many registers are >= to 90 days if this is a measure. 

 

Table_Register.PNG

 

Thanks for your valuable help.

 

Regards.

1 ACCEPTED SOLUTION

@Nestor_Moreno 

Place this measure in the same visual and you'll have the sum at the total row (and 1 or zero in each of the other rows depending on if the employee has or not been with the company for > 90 days)

New Measure Total V2 =
SUMX (
    DISTINCT ( Reg_Beneficiario_Empleabilidad[ID beneficiario] ),
    ([Dias_Vinculación]> 90) * 1
)

Or you can just place it in a card visual to have the total on it 

 

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

 

SU18_powerbi_badge

View solution in original post

3 REPLIES 3
AlB
Community Champion
Community Champion

Hi @Nestor_Moreno 

Try this measure that uses the one you already have. Place it in the visual:

New Measure Total =
SUMX (
    DISTINCT ( Reg_Beneficiario_Empleabilidad[ID beneficiario] ),
    [Dias_Vinculación]
)

 

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

SU18_powerbi_badge

Hi @AlB ,

 

Thanks for your answer, but how i Could count the workers that have more of 90 days in the work (Dias_Vinculación)?

 

With your formula are adding up. 

 

Thanks for your help. 

 

Regards

 

 

@Nestor_Moreno 

Place this measure in the same visual and you'll have the sum at the total row (and 1 or zero in each of the other rows depending on if the employee has or not been with the company for > 90 days)

New Measure Total V2 =
SUMX (
    DISTINCT ( Reg_Beneficiario_Empleabilidad[ID beneficiario] ),
    ([Dias_Vinculación]> 90) * 1
)

Or you can just place it in a card visual to have the total on it 

 

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

 

SU18_powerbi_badge

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.