Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello Team ,
Please help me for below issue .
Source data in mtrix Table -
| Service line | A | B | C |
| Client Name | (Revenue) | (Revenue) | (Revenue) |
| HP | 100 | 10 | |
| Asus | 10 | ||
| Dell | 100 |
Like ABove Table service line A - is value in HP so i want count as 1 and
for B -service Line there is data for Asus nd dell so i want count as 2
and for HP there is only 1 value ,so i want 1 count .
SO i want below output based on above -
| Service Line | Count |
| A | 1 |
| B | 2 |
| C | 1 |
Kindly help me with the dax which count a value and show me without blank Count.
Thank you.
Solved! Go to Solution.
Hi SapPowerBI
No DAX is required ! 😀
In Power Query unpivot you table to this ...
Then create a visual table
with Service and Count Value.
I will send an example in few minutes
Sorry you have completely confussed me. ☹️
Please close this tickjet and start again with an new ticket with an exampe of your source data and what you require.
Thanks 😁
As promissed here is a solution using unpivot.
Please click the thumbs up and Accept As Solution to leave kudos
@SAPpowerbi what represents A/B/C from your original post. Can you stick to one data table? How do you expect someone to help you if you keep on changing the data? Just my 2 cents.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Ha ha ha I agree with parry2k.
You did change the data in the problem description.
Which is a bit frustrating when volunteers are trying to help.
Glad we found you a solution.
But keep problem descriptions simple next time please 😀😀😀
Hi SapPowerBI
No DAX is required ! 😀
In Power Query unpivot you table to this ...
Then create a visual table
with Service and Count Value.
I will send an example in few minutes
@speedramps what is the thought process to aggregate the data on PQ, just trying to understand?
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@SAPpowerbi would you mind pasting what the source data looks like? Paste it in the table format? it should be straight forward but need to see how the source data looks like?
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Dummy SOurce Table -
| Region | Clinet | Date | Value |
| UK | HP | 1/1/2022 | 11 |
| UK | HP | 1/1/2022 | 11 |
| UK | HP | 1/1/2022 | 11 |
| UK | HP | 1/1/2022 | 11 |
| UK | HP | 1/1/2022 | 11 |
| USA | Dell | 1/1/2022 | 100 |
| 1/1/2022 | 100 |
Hey Hi ,
Source data is already unpioted , in above example i am using source as a matrix table from my Visvalization - i want ouput based on that -
basically i want count without blank and the total.
@SAPpowerbi does your source data in pivot form? How your source data looks like? You need to unpivot it and then it will be super easy to work with.
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
SOurce data -
| Region | Clinet | Date | Value |
| UK | HP | 1/1/2022 | 11 |
| UK | HP | 1/1/2022 | 11 |
| UK | HP | 1/1/2022 | 11 |
| UK | HP | 1/1/2022 | 11 |
| UK | HP | 1/1/2022 | 11 |
| USA | Dell | 1/1/2022 | 100 |
| USA | Asus | 1/1/2022 | 100 |
Hey Hi ,
Source data is already unpioted , in above example i am using source as a matrix table from my Visvalization - i want ouput based on that -
basically i want count without blank and the total.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.