Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
SAPpowerbi
Helper II
Helper II

Count without blank rows

Hello Team ,

 

Please help me for below issue .

 

Source data in mtrix Table -

 

Service lineABC
Client Name(Revenue)(Revenue)(Revenue)
HP100 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 LineCount
A1
B2
C1

 

Kindly help me with the dax which count a value and show me without blank Count.
Thank you.

1 ACCEPTED SOLUTION
speedramps
Super User
Super User

Hi SapPowerBI

 

No DAX is required !  😀

 

In Power Query unpivot you table to this ...

speedramps_1-1651602186457.png

 

Then create a visual table 

with Service and Count Value.

I will send an example in few minutes

View solution in original post

13 REPLIES 13
speedramps
Super User
Super User

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 😁

 

speedramps
Super User
Super User

As promissed here is a solution using unpivot.

Please click the thumbs up and Accept As Solution to leave kudos

 

Click here to download example 

parry2k
Super User
Super User

@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  😀😀😀

speedramps
Super User
Super User

Hi SapPowerBI

 

No DAX is required !  😀

 

In Power Query unpivot you table to this ...

speedramps_1-1651602186457.png

 

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.

parry2k
Super User
Super User

@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?

 

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

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.

selimovd
Super User
Super User

Hello @SAPpowerbi ,

 

how does the source table look like?

 

Best regards

Denis

Dummy SOurce Table -

RegionClinet DateValue
UKHP1/1/202211
UKHP1/1/202211
UKHP1/1/202211
UKHP1/1/202211
UKHP1/1/202211
USADell1/1/2022100
  1/1/2022100

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.

parry2k
Super User
Super User

@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.

 

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

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 -

RegionClinet DateValue
UKHP1/1/202211
UKHP1/1/202211
UKHP1/1/202211
UKHP1/1/202211
UKHP1/1/202211
USADell1/1/2022100
USAAsus1/1/2022100

 

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.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors