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
admin11
Memorable Member
Memorable Member

How to count number of row with no product info ?

Hi All

 

With the help from @v-yingjl i got the below expression working fine :-

  

flag no product offer yingil = 'CRM_TS'[Product Offer] = ""
 
Now i need count total how many row not fill with product offer by SBU.
 
I have try Below , i get error :-
CNT_NO_PROD_INFO = Distinctcount('CRM_TS'[Product Offer] = "")

admin11_0-1621506808851.png

Below link is my PBI file

https://www.dropbox.com/s/yjan8gv6l4263hw/PBT_V2021_400%20CRM_TS%201%20FILE%20ONLY_1.pbix?dl=0

 

Paul

1 ACCEPTED SOLUTION

Hello @admin11 

 

It seems to be like the data in the Product info column is not blank when we try with the previous formula. So for that, you have to create a new calculated column

 
ISBlank =
IF(ISBLANK('CRM_TS'[Product Offer]) || 'CRM_TS'[Product Offer] = "", true(), false())
 
Next, use the below formula for your card visualization:
 
CNT_NO_PROD_INFO =
CALCULATE(COUNTROWS(CRM_TS), FILTER(CRM_TS, [ISBlank] = True))
 
This is working on my side(refer to screenshot):
Community Answer2.PNG
 
And if you find the solution useful please mark my post as a solution!
In doing so, you are also helping me.
Thank you!
Mintu Baruah 

View solution in original post

4 REPLIES 4
MintuBaruah
Helper III
Helper III

Hello @admin11 

 

Looking at the data, you can calculate the blank rows in the Product offer column using the below formulae.

 

CNT_NO_PROD_INFO =
CALCULATE(COUNTROWS(CRM_TS), FILTER(CRM_TS, ISBLANK([Product Offer]) = TRUE()))
 
This will count total how many rows are not filled with product offers.
 
Regards,
Mintu Baruah

@MintuBaruah 

I have try to vreate both column and measure , but it display Blank.

admin11_0-1621512156372.png

 

Paul

Hello @admin11 

 

It seems to be like the data in the Product info column is not blank when we try with the previous formula. So for that, you have to create a new calculated column

 
ISBlank =
IF(ISBLANK('CRM_TS'[Product Offer]) || 'CRM_TS'[Product Offer] = "", true(), false())
 
Next, use the below formula for your card visualization:
 
CNT_NO_PROD_INFO =
CALCULATE(COUNTROWS(CRM_TS), FILTER(CRM_TS, [ISBlank] = True))
 
This is working on my side(refer to screenshot):
Community Answer2.PNG
 
And if you find the solution useful please mark my post as a solution!
In doing so, you are also helping me.
Thank you!
Mintu Baruah 

@MintuBaruah 

Thank you very much for your help. 

Paul

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