The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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"})
)
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
136 | |
114 | |
108 | |
66 | |
54 |
User | Count |
---|---|
226 | |
122 | |
113 | |
93 | |
92 |