Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi I have a patienid and dates. I want to choose the next earliest date.
| patientid | date | patietid | nextdate | ||||||
| 1 | 8/20/2019 | 1 | 9/21/2019 | ||||||
| 1 | 9/21/2019 | 2 | 9/26/2019 | ||||||
| 1 | 10/22/2019 | 3 | 9/28/2019 | ||||||
| 2 | 8/23/2019 | 4 | 8/30/2019 | ||||||
| 2 | 8/24/2019 | ||||||||
| 2 | 10/25/2019 | ||||||||
| 2 | 9/26/2019 | ||||||||
| 3 | 8/27/2019 | ||||||||
| 3 | 9/28/2019 | ||||||||
| 3 | 9/29/2019 | ||||||||
| 4 | 8/30/2019 | ||||||||
so in essence, find the earliest date which is greater than today
Solved! Go to Solution.
Hi @newkingdom
1. Place Table1[patientid] in the rows of a table visual
2. Create this measure and place it in the visual
NextDate = CALCULATE ( MIN ( Table1[Date] ), Table1[Date] > TODAY () )
Hi @newkingdom
1. Place Table1[patientid] in the rows of a table visual
2. Create this measure and place it in the visual
NextDate = CALCULATE ( MIN ( Table1[Date] ), Table1[Date] > TODAY () )
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 50 | |
| 44 | |
| 42 | |
| 18 | |
| 18 |
| User | Count |
|---|---|
| 69 | |
| 69 | |
| 32 | |
| 32 | |
| 32 |