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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.