cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
DouweMeer Member
Member

select value in table

So... for something different.

 

I created the following in a custom column: 

 

VAR a1
=
SELECTCOLUMNS(
   filter ( 'Case History'
      , and (
         'Case History'[CaseId] = 'Case'[Id]
         , 'Case History'[CreatedById] <> "005i0000007bCWhAAM"
         )
      )
   , "Date2" , 'Case History'[CreatedDate]
   , "User3" , 'Case History'[CreatedById]
   )
VAR a2
= MINX( a1 , [Date2] )
VAR a3
= filter ( a1 , [Date2] = a2 )
RETURN
...
 
So at VAR a3 I've created a table where field "User3" contains 1 value, the one I want... but it is text. How do I select this one?
1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: select value in table

Juse use a MAXX or MINX on that single row table, if I understand what you are saying.


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

Proud to be a Datanaut!


4 REPLIES 4
Super User
Super User

Re: select value in table

Juse use a MAXX or MINX on that single row table, if I understand what you are saying.


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

Proud to be a Datanaut!


DouweMeer Member
Member

Re: select value in table

When I tried it, it didn't work and BI suggested it was due to string value. Now this Super User comes along and suggests my earlier thought and it just does somehow work.... how....? (rhetorical) 

@Greg_Deckler  Thanks Greg.

Super User
Super User

Re: select value in table

I was wondering because it seemed like you had done that for VAR2. Perhaps you used a numerica aggregation before like SUMX?


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

Proud to be a Datanaut!


DouweMeer Member
Member

Re: select value in table

I think it is most likely that I made an error in my context which made it happen that one of the applied filters wasn't working, thus you would have multiple results. Something that might break it, I assume.

Helpful resources

Announcements
GregDeckler

How to Get Your Question Answered Quickly

Power BI Super User, Greg Deckler, explains

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Ideas
Users Online
Currently online: 247 members 2,697 guests
Please welcome our newest community members: