Forum Discussion
Number Matching Columns - Tried all the obvious things!
Hi all,
I have two columns, one with colleague ID, one with manager ID.
I am trying to calculate how many direct reports each person has, i am trying to debug an issue where i can't seem to generate a match between two columns with numbers in.
Hi leeleeds123
Could you do the in the query editor using a conditional column?
That uses M instead of DAX and is before the data is encoded into the model.This also gives you the option of using Group By with a Count or Distinct count to work out how many each have.
Finally have you tried doing a LEN on the cell?
I once brought data in from an API and it included a Non-breaking space which meant my two columns didn't match!
2 Replies
- SamWiseOwl
Super User
Hi leeleeds123
Could you do the in the query editor using a conditional column?
That uses M instead of DAX and is before the data is encoded into the model.This also gives you the option of using Group By with a Count or Distinct count to work out how many each have.
Finally have you tried doing a LEN on the cell?
I once brought data in from an API and it included a Non-breaking space which meant my two columns didn't match!
- Greg_Deckler
Community Champion
leeleeds123 I assume this is a column (Match) and is this being created in the table 'Management Hierarchy Report'? Can you share sample data?