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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
adminclikalia
Frequent Visitor

CALCULATE WITH MEASURE, FILTERS FROM DIFFERENT TABLES AND USERELATIONSHIP

I´m strugelling trying to resolve a query. What I need to do is to calculate a measure that combine a measure (the counts of leads) filter by the offers that has status as "Active" and the field "approbeoffer" is TRUE(). Additionally I need to USERELATIONSHIP between the date of creation of the offer and my calendar table.

 

My Measures are:

Leads Approbed and status offer = CALCULATE([Total de Leads], FILTER(sing_leadadquisicions, sing_leadadquisicions[sing_aprobadoofer] = TRUE()), FILTER(RELATEDTABLE(sing_ofertaadquisicions), sing_ofertaadquisicions[statecode] = "Activo"))

 

AND THEN

Oferta Aprobada por fecha de creac oferta = CALCULATE([Leads Aprobados y estado oferta activo], USERELATIONSHIP('Calendar'[DateKey], sing_ofertaadquisicions[DateKey_fec_creacion_oferta]))

 

 

My offer table is related with the Calendar table by their DateKey field and my leads table is related by different DateKey field with the Calendar table that has their own DateKey field. The only one relationship that is active between leads and Calendar is the date of creation of the lead and my Calendar DateKey.

 

The thing is that my measure returns a value that is below the value that should return.

 

In addition to this I checked that all my date columns are in the same format not only in PowerBI but also in PowerQuery.

 

I really appreciate your help! I don´t know what is happening

Thanks

 

Regards!

 

1 REPLY 1
v-kelly-msft
Community Support
Community Support

Hi @adminclikalia ,

 

A bit difficult to create sample data with your description,could you pls provide a sample .pbix file with your measure inside for test?

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.