Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I have a report visual that needs the percentage of people referred to program that actually enrolled in the program. People can be referred more than once.
I have this measure but I would only like to restrict it to the latest Disposition date.
ReferredToH = CALCULATE(COUNTROWS(ProgramDisposition),FILTER(ProgramDisposition,(ProgramDisposition[tkh_DispositionDate]<=LASTDATE('Calendar'[Date])&&[tkh_DispositionDate]>=FIRSTDATE('Calendar'[Date])&&(ProgramDisposition[DispositionTypeValue]=969750000))))
Is there a way to include only the latest occurence of a program disposition in this measure?
Thank you
Hi @elmarcinpbi,
You can create a measure like below:
Measure= var latest=Calculate(MAX(ProgramDisposition[tkh_DispositionDate]),all(ProgramDisposition))
return
CALCULATE(COUNTROWS(ProgramDisposition), Filter(all(ProgramDisposition), ProgramDisposition[tkh_DispositionDate] =latest))
If the above DAX doesn't work, please share some dummy data and expected results for our analysis.
Best Regards,
Qiuyun Yu
Thank you for the response. I used a table group and a join to get what I needed, but when I have a minute I will test out this syntax. I appreciate the help.
Check out the April 2026 Power BI update to learn about new features.
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.
| User | Count |
|---|---|
| 41 | |
| 37 | |
| 34 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 64 | |
| 58 | |
| 31 | |
| 25 | |
| 25 |