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
anwilkins
Resolver II
Resolver II

Seeking Date Greater than the previous date

Question is:
 
Why does this conditional column:

SCIndicator = if (MIN('MERGE_BillingSUMMARY'[SessionCodes]) > ('MERGE_BillingSUMMARY'[CCA]) ,1,0 )
 
Produce this results:
 Where the first two SessionCodes (10/4/2017 and 10/11/2017) are clearly not > 10/17/2017.
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
185763 112/11/2017 0:00
185763 11/16/2018 0:00
185763 11/29/2018 0:00
185763 12/26/2018 0:00
185763 13/7/2018 0:00
185763 13/21/2018 0:00
185763 14/10/2018 0:00
185763 14/25/2018 0:00
18576310/17/2017 0:000 
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@anwilkins , Try a new column like

 

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

2 REPLIES 2
amitchandak
Super User
Super User

@anwilkins , Try a new column like

 

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 )

Hey Amitchandak, I had to do a bit more configuration but yes...this did get me the first date, now I need the second date. If you will refer to this link, you will see the entire request in a different post.

Pull the next sequential service date that use spe... - Microsoft Power BI Community

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.