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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
fabi89
Regular Visitor

Measure using a non active relation

Hello all

 

From a great DB where I can find orders, sells, purchasing and other documents, I have many dates collumns (such as document creaton date and deliery date). I have this big DB linked to a continous calendar table so I can do some meassures based on the creation date, but I am having problems creating meassures by the delivery date.

This Delivery Date collumn is linked to the calendar date via a non active relation

 

Do you have any idea how I can do a meassure based on the delivery date, such as "Total expected sells within X month of the year"? In simple terms would be

Total sells = calculate (sumx(big DB, EUR), delivery date = calendar date.month)

But this doesn't work.

Below images on how my tables are linked and the current error of linkage from a related table

 

Thanks!!

 

fabi89_1-1742284526812.png

fabi89_2-1742284650795.png

 

6 REPLIES 6
v-achippa
Community Support
Community Support

Hi @fabi89,

 

Thank you for reaching out to Microsoft Fabric Community.

 

Thank you @Deku and @MattiaFratello for the prompt response.

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the super user resolved your issue? or let us know if you need any further assistance.
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

Hi @fabi89,

 

We wanted to kindly follow up to check if the solution provided by the super user resolved your issue.

If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

Hi @fabi89,

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the super user resolved your issue.
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

MattiaFratello
Super User
Super User

Hi @fabi89, you need to use the function USERELATIONSHIP, please check here how to use it: https://learn.microsoft.com/en-us/dax/userelationship-function-dax

 

If my answer fullfil your question, please mark it as a solution

Like this

Total sales = 
CALCULATE(
   SUXMX(table, table[EUR] )
   , USERELATIONSHIP( table[delivery date], calendar[date] )
)

Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!
fabi89
Regular Visitor

So far does not retrieve any error, but does not calculate it. I want to add every order to be delivered within EOM of each Month, Year

In other words, I want to reply the question "How much do we expect to invoice within the ending of X month"

 

Any ideas?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors