Forum Discussion
Anonymous
6 years agoNot applicable
Error handling for URL filtering
Hello, I am working on creating a URL that will pass a query string parameter to the Power BI report. Is there any way to handle errors for this? For example, If I have a table COURSES ...
- 6 years ago
Hi Anonymous ,
You could create a new slicer and use parameter to select the value in the slicer.
Then you could use SELECTEDVALUE() function to create a measure.
Measure = IF ( ISFILTERED ( 'Slicer'[Column] ), IF ( SELECTEDVALUE ( 'Slicer'[Column] ) = SELECTEDVALUE ( 'Table'[Column] ), SELECTEDVALUE ( 'Table'[Column] ), "There are no courses with a course name of '" & SELECTEDVALUE ( 'Slicer'[Column] ) & "'" ) )Here is the result.
v-eachen-msft
Community Support
6 years agoHi Anonymous ,
You could create a new slicer and use parameter to select the value in the slicer.
Then you could use SELECTEDVALUE() function to create a measure.
Measure =
IF (
ISFILTERED ( 'Slicer'[Column] ),
IF (
SELECTEDVALUE ( 'Slicer'[Column] ) = SELECTEDVALUE ( 'Table'[Column] ),
SELECTEDVALUE ( 'Table'[Column] ),
"There are no courses with a course name of '"
& SELECTEDVALUE ( 'Slicer'[Column] ) & "'"
)
)
Here is the result.