I should start by saying I'm using a Live Connection over a Tabular model, so creating calculated columns with 'edit queries' is not an option unfortunately. Here's what my data looks like, with expected results:
In my table visual, I need to create a measure that will rank my CASE_IDs, from '1' to 'N', whenever a CASE_ID has more than 1 SUB_CASE_IDs. My end goal: to have a distinct values of CASE_IDs. After the measure is created, the idea is to filter out all the rows that are different than 1.
Some key points if I may:
- I don't really care for the order of the SUB_CASE_IDs, or which row gets the value of '1'.
- I know that by removing the SUB_CASE_ID column I get the distinct values of the CASE_IDs, but the thing is, I need to include the SUB_CASE_ID column because it adds another granular level (more rows) that I need to display, which I then also filter using other DAX measures.
- In SQL, the syntax would look like this: rank() over(partition by case_id order by sub_case_id)
Hope I'm clear enough. Any help would be greatly appreciated!