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
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
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.