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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
cbailey92
New Member

TOTALMTD and USERELATIONSHIP

Hi All,

 

I am trying to calculate a MTD value based on a date column from my 'Quotes' table that is different to the date column that has an active relationship with my calendar.

 

I think I need to use some sort of combination of TOTALMTD and USERELATIONSHIP?

 

I am calculating a value from my 'Quotes' table. The 'Quotes' table has a 'Created Date' column, which is my active relationship with my calendar table, and a 'Quote Won Date', which is what I want my month-to-date calculation to work from.

 

I do have an inactive relationship established in my model between my calendar table and the 'Quote Won Date'

 

Here is something I have tried which does not work but might illustrate what I am trying to calculate:

MTD Value of Quotes Won by Quote Won Date = 
    CALCULATE([Value of Quotes Won],DATESMTD('calendar'[Reporting Date]),USERELATIONSHIP(quoted_opportunities_and_quotes_data[Quote Won Date],'calendar'[Reporting Date]))

 

Really appreciate any help anyone can offer!

 

Many thanks in advance,

Chris

1 REPLY 1
OwenAuger
Super User
Super User

Hi @cbailey92 

The logic of your measure appears correct to me.

It is simultaneously applying a MTD filter on your 'calendar' table, and activating the relationship with the [Quote Won Date] column.

 

I tested your measure in a small sample data model and it gave the expected result.

 

Could you post either a link to a shareable PBIX or some some sample data and the result you are getting?

 

Regards,

Owen

 

 


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

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.