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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Space-efficient alternative to storing URLs as calculated fields

I have 2 URLs  as  calculated fields in the META TABLE ,that are only needed to display in the report, and no calculation depends on them. Is there not a way to generate them on the fly when needed, as opposed to pre-calculating all of them as calculated fields?

 

URL 1 = CONCATENATE(META[Path],"/ad")

 

url new post.png

FILE --> SAMPLE.pbix 

1 ACCEPTED SOLUTION
bcdobbs
Community Champion
Community Champion

You could make use of SELECTEDVALUE...

URL Measure = 

VAR SelectedPath = SELECTEDVALUE ( META[Path] )
VAR SelectedAddition = "ad"

VAR Result =
    IF ( NOT ISBLANK ( SelectedPath ) && NOT ISBLANK ( SelectedAddition), SelectedPath & SelectedAddition, BLANK () )

RETURN Result

 

Make sure the data category of the measure is set as URL:

bcdobbs_0-1639990994238.png

 



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

View solution in original post

1 REPLY 1
bcdobbs
Community Champion
Community Champion

You could make use of SELECTEDVALUE...

URL Measure = 

VAR SelectedPath = SELECTEDVALUE ( META[Path] )
VAR SelectedAddition = "ad"

VAR Result =
    IF ( NOT ISBLANK ( SelectedPath ) && NOT ISBLANK ( SelectedAddition), SelectedPath & SelectedAddition, BLANK () )

RETURN Result

 

Make sure the data category of the measure is set as URL:

bcdobbs_0-1639990994238.png

 



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors