Forum Discussion
vini_udenia
3 years agoHelper I
Sub Query - How to write DAX or handle in Power Query
I have the requirement to exclude certain schools from a measure calcuation. I have been able to define the logic in a sub-query, not sure how can this be converted to a DAX. SELECT DISTINCT SE...
MahyarTF
3 years agoMemorable Member
Hi,
From my point of view, it will be a bit complicated in Dax, but I usually create a separate query for the excluded part, then create a separate table as a Left Anti Join option :
1- Table A
2- Table B
3- Merge table :
Appreciate your Kudos and please make it as a solution if it helps
vini_udenia
3 years agoHelper I
Thank you for your advise, the Left Anti Join definitely solves part of the requirement.
The 2nd part in which the subquery need to join based on the SK_SESS and SK_SESS -1 of the main query is still quite puzzling for me.
Highlighted the portion: