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.
I have the following measure - 'KPI Measures'[Undup Active Clients KPI] in DAX:
MEASURE 'KPI Measures'[Undup Active Clients KPI] =
VAR undupClientsServed =
TREATAS (
SUMMARIZE (
FILTER (
'Client Services',
'Client Services'[ClientWHID] > 0
&& 'Client Services'[Is No-show] = FALSE ()
&& 'Client Services'[Is Cancellation] = FALSE ()
&& 'Client Services'[Is Non-claimable] = FALSE ()
),
'Client Services'[ClientWHID]
),
'Client Episode Metrics'[ClientWHID]
-- FILTER('Client Episode Metrics',
-- 'Client Episode Metrics'[AdmissionDate] <= 'Client Services'[Service Month])
)
VAR result =
CALCULATE ( [Undup Active Clients], undupClientsServed )
RETURN
result
I need to add the condition for 'Client Episode Metrics' table which is now commented out in the above code:
FILTER('Client Episode Metrics',
'Client Episode Metrics'[AdmissionDate] <= 'Client Services'[Service Month])
I am not sure if FILTER function needed in this case; I just need to insert the condition -
'Client Episode Metrics'[AdmissionDate] <= 'Client Services'[Service Month]) which is related to 'Client Episode Metrics' table written in TREATAS (it's TREATAS because 'Client Episode Metrics' and 'Client Services' are NOT related (have no relations)
Please, HELP!
Hi @Hell-1931 ,
I'm not clear about the specific data model, please try:
IF( 'Client Episode Metrics'[AdmissionDate] <= 'Client Services'[Service Month],'Client Episode Metrics'[ClientWHID])
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
2 | |
1 | |
1 | |
1 |
User | Count |
---|---|
23 | |
3 | |
2 | |
2 | |
2 |