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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
mendriki32
Frequent Visitor

Calculated Column Comparing Field Value to Measure Showing Incorrect Value

So I've added a field comparing a column to a filtered value (measure) in import mode. In all of the columns below _IsCurrentJob should be 1. All the _timeSeriesDateTime fields are not aggregated/summarized in any way. 

 

pbi.png

Where 

_SelectedJob = SELECTEDVALUE(jobTable[jobNumber])
 
Now I searched the forums and found a suggestion to turn it into an aggregate measure
 
_sj2 = IF(max(_timeSeriesDateTime[jobNumber]) = [_SelectedJob],1,0)
 
which gives me the correct values in table form (tested and correctly showing 0 for non-matching values),
 
pbi3.png
 
 
but when I try to filter a date slicer (not the above table) visual based on _sj2 = 1 I get this:
pbi2.png
After a lengthy google search and an afternoon spent researching set theory, I'm throwing in the towel. Any and all help would be greatly appreciated. 
1 ACCEPTED SOLUTION

Hi @mendriki32 

Please change the time to list mode.Then drag the _sj2 measure to visual level filter.

a1.png

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @mendriki32 

Based on my test,the measure is correct.Please check the visual level filter as attachment.

a1.png

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-cherch-msft Still getting the same error mentioned in the original post. I should have mentioned that the error was thrown from a date slicer visual, with "time" being the only field. I've updated the original question.

 

pbi4.png

Hi @mendriki32 

Please change the time to list mode.Then drag the _sj2 measure to visual level filter.

a1.png

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.