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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Sisko
Helper I
Helper I

Counting total value of images url

Hi,

 

I need help to calculation total value of images url. Now I have this kind of funtia, but it not work right.

 

Picture count = IF( ISBLANK('Table'[ImageUrls.1]), 0, 1) +
IF ( ISBLANK('SupplierAudit'[ImageUrls.2]), 0, 1) +
IF ( ISBLANK('SupplierAudit'[ImageUrls.3]), 0, 1) +
IF ( ISBLANK('SupplierAudit'[ImageUrls.4]), 0, 1) +
IF ( ISBLANK('SupplierAudit'[ImageUrls.5]), 0, 1) +
IF ( ISBLANK('SupplierAudit'[ImageUrls.6]), 0, 1)
 
 
1 ACCEPTED SOLUTION
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Sisko ,

 

Above formula should work in a calculated column, not in a measure.

 

Besides, you can unpivot above table, then, new a calculated column to check if URL column is blank, if yes, show 0, otherwise show 1. Then, sum up the new calculated column to get the total value of image URLs.

 

For more advice, please provide sample data and desired result.

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Sisko ,

 

Above formula should work in a calculated column, not in a measure.

 

Besides, you can unpivot above table, then, new a calculated column to check if URL column is blank, if yes, show 0, otherwise show 1. Then, sum up the new calculated column to get the total value of image URLs.

 

For more advice, please provide sample data and desired result.

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors