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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

wrong output for matrix

Hello,

I appreciate it, if you could tell me what is my mistake.  

 

Inputs:

forum1.PNG

 

output:

forum2.PNG

 

my data model is :

forum3.PNG

 

i implemented it with matrix but it shows me wrong data for run time. instead of showing 2050 for month 9, it shows 2050 for all months.

 

Could you please help me to find out my mistake?

 

Thank you in advance.

Mahsa

 

 

t

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @Anonymous 

 

The issue is wiht the inactive relationship between you date table and you capacity ledger, if you make this relationship active and use the month from that table on your calculation you get the correct resutls:

 

MFelix_0-1616083077833.pngMFelix_1-1616083089144.png

 

If you have any other issue that does not allow to have this relationship active create the following measure:

 

RUNTIME =CALCULATE (SUM(capaciy[Run Time]), USERELATIONSHIP(capaciy[posting date],Date[Date] ))

Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

1 REPLY 1
MFelix
Super User
Super User

Hi @Anonymous 

 

The issue is wiht the inactive relationship between you date table and you capacity ledger, if you make this relationship active and use the month from that table on your calculation you get the correct resutls:

 

MFelix_0-1616083077833.pngMFelix_1-1616083089144.png

 

If you have any other issue that does not allow to have this relationship active create the following measure:

 

RUNTIME =CALCULATE (SUM(capaciy[Run Time]), USERELATIONSHIP(capaciy[posting date],Date[Date] ))

Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.