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
Nikolas_ZN
Frequent Visitor

Main Table not filtering the value of the previous date

Hi team, 

I have the following measure with main purpose to calculate the difference between the course of a truck the latest date and the date before. However since there are a lot of trucks I have multiple courses (headings) per day, hence I am filtering them using an id table. The measure below returns correctly the current course, however returns blank in the previous course which is the heading one day before. The Main table has a Many to one relationship to the calendar table. Any thoughts?

 

Nikolas_ZN_2-1714389818650.png

 

 

5 REPLIES 5
Nikolas_ZN
Frequent Visitor

I cant understand how this is helpful since I am not using a json file

This is for debugging DAX code, not for json.

lbendlin
Super User
Super User

Read about EVALUATEANDLOG, then install DAXDebugOutput and troubleshoot the individual steps.

Thank you for your reply!! I was able to fix it by applying ALLSELECTED after the filter in the second variable. Now the new problem is that I want to show only the latest positions of the trucks on the map. For that reason I have created a filter that gives the latest calendar date based on the date number ( which is a column containing DATEDIFF function). When I select the slicer to show the latest (i.e max number) I got blank result again. Thank you in advance!!

Read about EVALUATEANDLOG, then install DAXDebugOutput and troubleshoot the individual steps.

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.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.