Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi
If I have a table like this in power query:
Supplier ID | Region | Survey status? |
1535 | Germany | Complete and Up to Date |
1563 | Germany | Complete and Up to Date |
2786 | Germany | Complete and Up to Date |
1612 | France | Complete but Out of Date |
2057 | Germany | Incomplete |
4309 | Germany | Complete and Up to Date |
3717 | Brazil | Complete and Up to Date |
1867 | Spain | Not Submitted |
4130 | Brazil | Complete and Up to Date |
4624 | China | Complete and Up to Date |
4068 | China | Complete and Up to Date |
3531 | Germany | Complete and Up to Date |
2469 | Germany | Complete but Out of Date |
2666 | China | Complete and Up to Date |
4798 | China | Complete and Up to Date |
4079 | Germany | Complete and Up to Date |
1734 | Germany | Complete and Up to Date |
4650 | Germany | Complete and Up to Date |
1770 | France | Complete but Out of Date |
3047 | Germany | Complete and Up to Date |
1605 | Germany | Complete and Up to Date |
2635 | Brazil | Complete and Up to Date |
4223 | Spain | Complete and Up to Date |
1491 | Brazil | Complete and Up to Date |
4412 | China | Complete and Up to Date |
2359 | China | Complete and Up to Date |
2356 | Germany | Complete and Up to Date |
1373 | Germany | Complete but Out of Date |
4659 | China | Complete and Up to Date |
3961 | China | Complete and Up to Date |
How do i get it into this format:
Count of Supplier ID | Column Labels | ||||
Row Labels | Complete and Up to Date | Complete but Out of Date | Incomplete | Not Submitted | Grand Total |
Germany | 51 | 1 | 3 | 55 | |
Brazil | 30 | 6 | 36 | ||
France | 63 | 8 | 11 | 1 | 83 |
Spain | 8 | 1 | 2 | 11 | |
China | 281 | 36 | 58 | 9 | 384 |
Grand Total | 433 | 45 | 78 | 13 | 569 |
essentially i want to do a count of the supplier ID's per country for each status they are in. Please help!
Solved! Go to Solution.
Hi @kgiboin ,
if you start the pivot-operation, and select Supplier ID as Values column, click on the advanced options below and change the default-aggregation from Sum to Count.
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Hi @kgiboin ,
if you start the pivot-operation, and select Supplier ID as Values column, click on the advanced options below and change the default-aggregation from Sum to Count.
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
14 | |
13 | |
13 | |
13 | |
9 |