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
ChrisAZ
Helper V
Helper V

Calculation problem

So I am trying to get a calculation to display properly and I think my Measure is created correctly, but the way it is displaying is not correct. I have only added one month of data for the odometer in the Samsara- KB Data set for January 2025. In the attached PBIX, if you look at the Parts Dashboard, when you have it set to multiple months such as last 6 months, it is spreading the cost out amongst various months and it really should only be showing a value for January. I am not able to figure out where my settings are wrong for this.

Screenshot 2025-02-26 163418.jpg

 

https://drive.google.com/file/d/1IH5dXc52ndj-7Gs4BH_tkZ4EoOb6Q1AZ/view?usp=sharing

 

Thanks!

2 ACCEPTED SOLUTIONS
samratpbi
Super User
Super User

Hi,

The reason is you dont have any realationship between your Date table and your "Samsara - KM" table. Hence date is not getting filtered out. Please add a relationship using date column.

Hope this helps to resolve your problem. If it does, please mark it as solution, thanks!

View solution in original post

Your datetable should be able to filter your KM fact table once a relationship has been established but since there is no relationship between that and Shop Parts - Fleetio, you will see the same value at the category level in your matrix. See the cells highlighted in yellow.

danextian_1-1740638395190.png

 

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

6 REPLIES 6
danextian
Super User
Super User

Hi @ChrisAZ 

 

There really isn't an active relationship between Samsara - KM and DateTable because you can't create one for them due to the direction of the relationship between Vehicle Info and Samsra - KM

danextian_0-1740629882477.png

danextian_1-1740629989450.png

Change the direction of the relationship then create the relationship.

danextian_2-1740630068329.png

 

Please note that at the category level, you will see the total for january since there is no relationship between Shop Parts - Fleetio and Samsara - KM

danextian_3-1740630167538.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

I was able to add the relationship to Date by changing the other one but it sounds like you are stating I still won't be able to see the data line up by the correct month? It is still showing data for January showing up as August, etc.

Your datetable should be able to filter your KM fact table once a relationship has been established but since there is no relationship between that and Shop Parts - Fleetio, you will see the same value at the category level in your matrix. See the cells highlighted in yellow.

danextian_1-1740638395190.png

 

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

But I already do have a relationship on the date field between my date table and the Shop Parts table. Is there supposed to be something else as I thought that would be enough for it to make the connection.

 

Screenshot 2025-02-27 065630.jpg

samratpbi
Super User
Super User

Hi,

The reason is you dont have any realationship between your Date table and your "Samsara - KM" table. Hence date is not getting filtered out. Please add a relationship using date column.

Hope this helps to resolve your problem. If it does, please mark it as solution, thanks!

So I had attempted to set this already and thought it was in place. I went back in and set it again, but after I click Save, it does not seem to save the relationship. Any idea why? I get no error.

 

Screenshot 2025-02-26 193939.jpg

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.