Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Am I being really stupid...I cannot get this DAX to work. I have the field Activity[Event Date] but this DAX is adding an extra element to it i.e. Activity[Event Date].[Date]
This is clearly what is causing the issue but I'm not entirely sure how to add this [Date] element to make this work. Thanks in advance. Here's the entire script for your reference:
Solved! Go to Solution.
@Creative_tree88 , Try using updated measure
IR Lookup Exam Date Range =
VAR _start = 'SLAM Data May 24'[Admission Date]
VAR _end = 'SLAM Data May 24'[Discharge Date]
VAR _key = 'SLAM Data May 24'[PMI]
VAR _singleDateExam =
LOOKUPVALUE(
Activity[Examinations],
Activity[Event Date], _start,
Activity[Best Hosp No], _key
)
VAR _multiDateExams =
CALCULATE(
CONCATENATEX(
FILTER(
Activity,
Activity[Event Date] >= _start &&
Activity[Event Date] <= _end &&
Activity[Best Hosp No] = _key
),
Activity[Examinations],
", "
)
)
RETURN
IF(
ISBLANK(_end),
_singleDateExam,
_multiDateExams
)
Proud to be a Super User! |
|
@Creative_tree88 , Try using updated measure
IR Lookup Exam Date Range =
VAR _start = 'SLAM Data May 24'[Admission Date]
VAR _end = 'SLAM Data May 24'[Discharge Date]
VAR _key = 'SLAM Data May 24'[PMI]
VAR _singleDateExam =
LOOKUPVALUE(
Activity[Examinations],
Activity[Event Date], _start,
Activity[Best Hosp No], _key
)
VAR _multiDateExams =
CALCULATE(
CONCATENATEX(
FILTER(
Activity,
Activity[Event Date] >= _start &&
Activity[Event Date] <= _end &&
Activity[Best Hosp No] = _key
),
Activity[Examinations],
", "
)
)
RETURN
IF(
ISBLANK(_end),
_singleDateExam,
_multiDateExams
)
Proud to be a Super User! |
|
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |