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