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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
JImAyers
Helper I
Helper I

Date Comparison

Why does this conditional column:


SCIndicator = if (MIN('MERGE_BillingSUMMARY'[SessionCodes]) > ('MERGE_BillingSUMMARY'[CCA]) ,1,0 )
 
Produce this results:
Patient Internal IdCCASCIndicatorSessionCodes
185763 1 
185763 110/4/2017 0:00
185763 110/11/2017 0:00
185763 111/1/2017 0:00
185763 111/28/2017 0:00
18576310/17/2017 0:000 

Where the first two SessionCodes (10/4/2017 and 10/11/2017) are clearly not > 10/17/2017.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@JImAyers ,  Try a new column

 

Column =

var _min = minx(filter(Table, [Patient Internal Id] =earlier([Patient Internal Id]) && not(isblank([CCA])) ),[CCA])

return

if ('MERGE_BillingSUMMARY'[SessionCodes] >_min ,1,0 )

View solution in original post

3 REPLIES 3
JImAyers
Helper I
Helper I

That resolved it. Thank you 10 to the millionth!

jaideepnema
Solution Sage
Solution Sage

Hi @JImAyers ,
Very weird but Have you tried using :

SCIndicatornew = IF(MIN('Table'[CCA])>'Table'[SessionCodes],0,1)
 
jaideepnema_0-1635783173820.png

 

 

Please accept this as a solution if your question has been answered !!

Appreciate a Kudos 😀

amitchandak
Super User
Super User

@JImAyers ,  Try a new column

 

Column =

var _min = minx(filter(Table, [Patient Internal Id] =earlier([Patient Internal Id]) && not(isblank([CCA])) ),[CCA])

return

if ('MERGE_BillingSUMMARY'[SessionCodes] >_min ,1,0 )

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.