Reply
JSWILCOX1980
Regular Visitor
Partially syndicated - Outbound

Help with Web URL Measure only when cells are not blank

My table data consists of text column where there are a list of Text Entries, not every row has data.

 

Fruit

apples
 
strawberries
grapes
 
oranges

 

I have a used this measure for Web URL's 

Web URL3 = "https://mywebsite.com/browse/" & MAX('Test'[Fruit])
 
Which returns these results:
JSWILCOX1980_0-1700717401475.png

what i would like to achieve is within the measure, to have an If Statement that says if Fruit column contains blanks then do not return URL

 

Any help or guidance would be greatly appreciated.

 

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Syndicated - Outbound

Hi @JSWILCOX1980 
Modify the measure for :

Web URL4 = if (ISBLANK( max('Test'[fruits])), "","https://mywebsite.com/browse/" & MAX('Test'[fruits]))
or :
Web URL3 = if ( max('Test'[fruits])= "", "","https://mywebsite.com/browse/" & MAX('Test'[fruits]))
Depends on the reason for the blanks in the visual
 

If this post helps, then please consider Accepting it as the solution to help the other

members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
Ritaf1983
Super User
Super User

Syndicated - Outbound

Hi @JSWILCOX1980 
Modify the measure for :

Web URL4 = if (ISBLANK( max('Test'[fruits])), "","https://mywebsite.com/browse/" & MAX('Test'[fruits]))
or :
Web URL3 = if ( max('Test'[fruits])= "", "","https://mywebsite.com/browse/" & MAX('Test'[fruits]))
Depends on the reason for the blanks in the visual
 

If this post helps, then please consider Accepting it as the solution to help the other

members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Syndicated - Outbound

Rita, This was fantastic and so simple, i was trying to make much more difficult than what you provided!  I used your first suggestion and it worked flawlessly.  I am actually quantifying Jira Data and Not every entry is linked to an Epic, so if that data wasnt entered it doesnt exist, that is the reason for the blanks,  It can and should be updated by my team to have this data so the first solution will work once we have that running.  Again, Thank you!

Syndicated - Outbound

Hi @JSWILCOX1980 

Glad to help 🙂

There is a philosopher who said that life is not as simple as we think, but much simpler.❤️

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
avatar user

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)