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
Chizzo91
Regular Visitor

create mesure under condition

Hello,

 

I have two tables, one is the Calendar and the other one is Registro_HsTeoricas:

 

Asesor  /Cantidad de Hs/ Fecha Inicio/ Fecha Final real

Josh     /8                     /01-01-2016 /  20-08-2018

Mark   /6                      /20-12-2017 /  20-08-2018

 

this two tables don't have relationship. And in the calendar table i have created a new colummn with this mesure:

 

CALCULATE(SUMX(Registro_HsTeoricas;Registro_HsTeoricas[Cantidad de Hs]);FILTER(Registro_HsTeoricas;'Date'[Date]>=Registro_HsTeoricas[Fecha Incio ]&&'Date'[Date]<=Registro_HsTeoricas[Fecha Fin Real]))

 

When i put this on a matrix i get the total sum of hours but if i wanna see for each asesor (advisor) filtering i can't get it and i don't know how to calculate for each advisor individually.

 

I hope you can help me, thanks.

3 REPLIES 3
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Chizzo91,

 

I am not clear about the intention of your above formula. Please show us your desired result. And provide more description about your requirement.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Yuliana,

 

I have already fixed it! thanks!

Chizzo91
Regular Visitor

Hello,

 

I have two tables, one is the Calendar and the other one is Registro_HsTeoricas:

 

Asesor  /Cantidad de Hs/ Fecha Inicio/ Fecha Final real

Josh     /8                     /01-01-2016 /  20-08-2018

Mark   /6                      /20-12-2017 /  20-08-2018

 

this two tables don't have relationship. And in the calendar table i have created a new colummn with this mesure:

 

CALCULATE(SUMX(Registro_HsTeoricas;Registro_HsTeoricas[Cantidad de Hs]);FILTER(Registro_HsTeoricas;'Date'[Date]>=Registro_HsTeoricas[Fecha Incio ]&&'Date'[Date]<=Registro_HsTeoricas[Fecha Fin Real]))

 

When i put this on a matrix i get the total sum of hours but if i wanna see for each asesor (advisor) filtering i can't get it and i don't know how to calculate for each advisor individually.

 

I hope you can help me, thanks.

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