Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I have data that is similar to the below -
I need create a measure that counts the number of distinct outreaches were made per job filtered by OB Call, OB Call - LVM, and Prescreen.
For this example data the returned values should be Job 1 = 3 people, Job 2 = 2 people
Can someone please assist on what this would look like?
Solved! Go to Solution.
Hi @rezboot,
DAX solution:
Output
Candidate DistinctCount =
VAR _candidates =
CALCULATE(
DISTINCTCOUNT(Table1[Candidate]),
KEEPFILTERS(Table1[Note Action] IN {"OB Call", "OB Call - LVM", "Prescreen"})
)
VAR _blankTotal =
IF(ISINSCOPE(Table1[Job #]), _candidates)
RETURN _blankTotal
Power Query Solution:
Output
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45W8ndScE7MyVHSUfLKz8gDUoZKsTpwYQVdBZ8wX3TJgKLU4uSi1FSQiFNRZiJ2GefEoqLMVLiUa25iZg6SBiMUUaj5RjjNh8gE+wZjiGG10wjZF2gSsQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Note Action" = _t, Candidate = _t, #"Job #" = _t]),
ChangedType = Table.TransformColumnTypes(Source,{{"Job #", Int64.Type}}),
FilteredRows = Table.SelectRows(ChangedType, each List.Contains({"OB Call", "OB Call - LVM", "Prescreen"}, [Note Action])),
GroupedRows = Table.Group(FilteredRows, {"Job #"}, {{"All", each List.Count(List.Distinct([Candidate])), Int64.Type}})
in
GroupedRows
Hi,
Use this formula
let
Source = Excel.CurrentWorkbook(){[Name="Table4"]}[Content],
#"Grouped Rows" = Table.Group(Source, {"Job #"}, {{"Number", each _}}),
#"Multiplied Column" = Table.TransformColumns(#"Grouped Rows", {{"Number", each List.Count(List.Distinct(Table.SelectRows(_, (x)=> x[Note Action]="OB Call" or [Note Action]="OB Call - LVM" or x[Note Action]="Prescreen" )[Candiate]))}})
in
#"Multiplied Column"
Hi,
Use this formula
let
Source = Excel.CurrentWorkbook(){[Name="Table4"]}[Content],
#"Grouped Rows" = Table.Group(Source, {"Job #"}, {{"Number", each _}}),
#"Multiplied Column" = Table.TransformColumns(#"Grouped Rows", {{"Number", each List.Count(List.Distinct(Table.SelectRows(_, (x)=> x[Note Action]="OB Call" or [Note Action]="OB Call - LVM" or x[Note Action]="Prescreen" )[Candiate]))}})
in
#"Multiplied Column"
Thanks! THis was very helpful and worked
Hi @rezboot,
DAX solution:
Output
Candidate DistinctCount =
VAR _candidates =
CALCULATE(
DISTINCTCOUNT(Table1[Candidate]),
KEEPFILTERS(Table1[Note Action] IN {"OB Call", "OB Call - LVM", "Prescreen"})
)
VAR _blankTotal =
IF(ISINSCOPE(Table1[Job #]), _candidates)
RETURN _blankTotal
Power Query Solution:
Output
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45W8ndScE7MyVHSUfLKz8gDUoZKsTpwYQVdBZ8wX3TJgKLU4uSi1FSQiFNRZiJ2GefEoqLMVLiUa25iZg6SBiMUUaj5RjjNh8gE+wZjiGG10wjZF2gSsQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Note Action" = _t, Candidate = _t, #"Job #" = _t]),
ChangedType = Table.TransformColumnTypes(Source,{{"Job #", Int64.Type}}),
FilteredRows = Table.SelectRows(ChangedType, each List.Contains({"OB Call", "OB Call - LVM", "Prescreen"}, [Note Action])),
GroupedRows = Table.Group(FilteredRows, {"Job #"}, {{"All", each List.Count(List.Distinct([Candidate])), Int64.Type}})
in
GroupedRows
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |