Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

Weird one of the Morning

$
0
0

Okay I have defined some measures that get me certain values in this case

 

A debugging version of my measure looks like this

Is In Funding Period := if(HASONEVALUE(Projects[ProjectCode]),

     [Finish Date] & ">=" & [Funding Period Start] & "& " & [Start Date] & "<" & [Funding Period Finish] & " --> " &

     if(([Finish Date]    >= [Funding Period Start]) && ([Start Date] < [Funding Period Finish]),

            "In Period",

            "Not In Period"

     ),

     "Maybe"

)

 

Now the measures

[Start Date]

[Finish Date]

[Funding Period Start]

[Funding Period Finish]

 

The measure as defined above works fine giving the appropriate values required.

 

I wanted to use it in a visual filter on power BI though and a Measure would not cut it (See other post ;-) ).  I therefore thought okay I will create a calculated column, which I definded as

 

InPeriod=[In In Funding Period]

 

 

Now the row is evaluate in Row context so should (in my head at least just work) but what I got was this (column left: measure right)

 

Capture.PNG

 

The data measures seem to evaluate correctly on both and yet the column always decided Not.  Even if the comparison were being done as strings this should not happen so I'm stumped.  If I transfer the same code into the column definition it all works as I expect.

 

What is going on here?


Viewing all articles
Browse latest Browse all 213819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>