Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Attached is an excel example of exactly what I want to achieve in Power BI.
I have a dataset, and I want to count along each row of the dataset - pointing to a particular range of columns - the number of instances of a particular word or words. In Excel this uses Countifs of Countif.
So the conditional columns I want to replicate in Power BI are columns O to Q in the attached image. I can't attach it as a document so i've shown the formulas instead of the values.
The table name is Jemma
Column N [Elements Checked] counts the instances of the words 'Pass' or 'Fail' in the specified range. It basically excludes 'N/A'
Column O [Pass Count] counts just the instances of the word 'Pass' in the specified range.
Column P [Fail Count] counts just the instances of the word 'Fail' in the specified range.
I would love to do this in Power Query using M query language.
hi, @Anonymous
It seems that you had forgotten to upload the file.
Sample data and expected output would help tremendously. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Best Regards,
Lin
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 74 | |
| 69 | |
| 39 | |
| 35 | |
| 23 |