Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
i have a table like this
sale ID | seller ID | Error type 1 | type 2 | type 3 | type 4 | type 5 |
140736742 | 552 | error | error | |||
154564108 | 554 | |||||
205626417 | 558 | error | error | |||
42810745 | 554 | error | ||||
32667322' | 552 | error | error |
I want a measure to sum number of errors for all table, like total number of errors = 7
The only wayi thinking to do is =
Hi @EngCicero ,
Has your problem been solved, if so, please consider Accept a correct reply as the solution or share your own solution to help others find it.
Best Regards
Lucien
Best Regards
Lucien
Hi @EngCicero ,
It seems to me that if you use measure, summing up each column individually at the end is the only way to go.
refer:
https://community.powerbi.com/t5/Desktop/sum-multiple-columns-how-to/m-p/93604
https://community.powerbi.com/t5/Desktop/Summarize-multiple-columns-based-on-values/m-p/613257
https://community.powerbi.com/t5/Desktop/Sum-values-of-multiple-columns-per-row/m-p/356026
Best Regards
Lucien
Hi,
In the Query Editor, select the first 2 columns, right click and select "Unpivot Other Columns". Now write this measure
Errors = calculate(countrows(data),data[value]="error")
Hope this helps.
Hello @Ashish_Mathur n @Greg_Deckler .
I didn't make myself clear enough, tihs error cells are tests for a process, this functions are not in my database. those errors are the results of more complex Switchs tests.
I'm stucked here
Thank you both anyway
@EngCicero OK, then you want MC Aggregations: Multi-Column Aggregations (MC Aggregations) - Microsoft Power BI Community
Hi,
I am sorry but i do not understand your requirement.
@EngCicero I would highly recommend unpivoting your "error" columns. If not that, then you are stuck with MC Aggregations: Multi-Column Aggregations (MC Aggregations) - Microsoft Power BI Community
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
98 | |
86 | |
70 | |
62 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |