Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Table View has a column LONG TERM PLACEMENT 1 and contains a mix of data.
I want to obtain the total of real data. therefore to count and not include the following NO PLACEMENT, N/A, blank.
So far I am unsuccessful in calculated column, or power query.
How can this be achieved please.
TIA
Solved! Go to Solution.
If you don't need the blank, no placement and NA rows anymore, then filter them out in PQ.
= Table.SelectRows(Source, each ([LONG TERM PLACEMENT 1 ] <> "" and LONG TERM PLACEMENT 1 <> "NA" and LONG TERM PLACEMENT 1 <> "NO PLACEMENT"))
You'll need to swap out Source for whatever your previous step was, or just modify the code in the formula bar.
If you need those rows, then there are ways to do it with either DAX or filters.
You can consider using LONG TERM PLACEMENT 1 in a slicer and deselecting those unwanted values. Or, using DAX, something like:
Measure = CALCULATE(COUNTROWS(Table), FILTER(Table,
Table[LONG TERM PLACEMENT 1] not IN {"", "NO PLACEMENT", "N/A"})
)
If you don't need the blank, no placement and NA rows anymore, then filter them out in PQ.
= Table.SelectRows(Source, each ([LONG TERM PLACEMENT 1 ] <> "" and LONG TERM PLACEMENT 1 <> "NA" and LONG TERM PLACEMENT 1 <> "NO PLACEMENT"))
You'll need to swap out Source for whatever your previous step was, or just modify the code in the formula bar.
If you need those rows, then there are ways to do it with either DAX or filters.
You can consider using LONG TERM PLACEMENT 1 in a slicer and deselecting those unwanted values. Or, using DAX, something like:
Measure = CALCULATE(COUNTROWS(Table), FILTER(Table,
Table[LONG TERM PLACEMENT 1] not IN {"", "NO PLACEMENT", "N/A"})
)
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
61 | |
60 | |
54 | |
38 | |
27 |
User | Count |
---|---|
86 | |
61 | |
45 | |
41 | |
39 |