March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi There,
I am new to using PowerBI, I am using an organisational data set in tandem with self-directed learning. Our data set is the output of monthly data quality exercises, so each record shows an ID number, a data input that has been checked, and a column that contains the text ERROR if there was a an error in that data element. Each ID number has around 50 data inputs to check that may or may not show ERROR.
It is straightforward enough to show a count of ERRORs for a given ID number:
What I would like to do is to be able to count the ID numbers which have 0 errors, 1 error, 2 errors, 3 errors and so on, in order to display in visualisations whether all the errors are concentrated in a small number of records, or spread out with a few here and there. I have tried a few different approaches but I am not yet experienced enough to know the right way to go about it.
Any help will be greatly appreciated!
Thanks,
Russell
Solved! Go to Solution.
Hello @rtassicker,
I have created a table with 2 columns - Grant Number and Errors.
Then I created calculated columns as below:
IsError = IF(Errors[Errors]<>"",1)
NumberofErrors = CALCULATE(COUNT(Errors[IsError]),FILTER(ALL(Errors),Errors[Grant Number]=EARLIER(Errors[Grant Number])))
Then I plot these columns in table visual as follows:
Here, please select "Don't summarize" for NumberofErrors and "Count" for Grant Number.
Hope this helps
Hi,
Refer to this article - https://www.daxpatterns.com/dynamic-segmentation/. Since this solution uses only measures, the result would respond to slicer selections.
Hope this helps.
Thanks Ashish, that's a little beyond me at the moment but it looks very useful 🙂
Hi @rtassicker ,
You can create a measure that counts the Grant Numbers and use it in the visuals alongside the errors. I created a sample table as below. Hope this helps.
Measure:
Visuals:
Thanks for the help Tara!
Hello @rtassicker,
I have created a table with 2 columns - Grant Number and Errors.
Then I created calculated columns as below:
IsError = IF(Errors[Errors]<>"",1)
NumberofErrors = CALCULATE(COUNT(Errors[IsError]),FILTER(ALL(Errors),Errors[Grant Number]=EARLIER(Errors[Grant Number])))
Then I plot these columns in table visual as follows:
Here, please select "Don't summarize" for NumberofErrors and "Count" for Grant Number.
Hope this helps
Thanks rajulshah, that's helped me find the solution 🙂
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
143 | |
97 | |
79 | |
68 |