Forum Discussion
Set Page title based upon Page Filter
- 5 years ago
Hi mvgust - sorry I didn't check my code. Try this
Pg Title = var __FromDt = FORMAT( MINX( ALLSELECTED( DateTab[Date] ), DateTab[Date] ), "MMM DD, YYYY") var __ToDt = FORMAT( MAXX( ALLSELECTED( DateTab[Date] ), DateTab[Date] ), "MMM DD, YYYY") RETURN "Report from " & __FromDt & " to " & __ToDtPage (and report filters for that matter) should be able to be accessed like any other type of filter.
Hope this helps
David
That doesn't seem to work:
"The MIN function only accepts a column reference as an argument"
Also, I'm not using a slicer, I'm using the page filter functionality. I know you can pass slicer selections but my primary issue is passing PAGE filters. I'm not finding a formula to do so?
Hi mvgust - sorry I didn't check my code. Try this
Pg Title =
var __FromDt = FORMAT( MINX( ALLSELECTED( DateTab[Date] ), DateTab[Date] ), "MMM DD, YYYY")
var __ToDt = FORMAT( MAXX( ALLSELECTED( DateTab[Date] ), DateTab[Date] ), "MMM DD, YYYY")
RETURN
"Report from " & __FromDt & " to " & __ToDt
Page (and report filters for that matter) should be able to be accessed like any other type of filter.
Hope this helps
David
- mvgust5 years agoHelper III
Thanks David! I was able to implement successfully. This also helps with my general knowledge knowing ALLSELECTED will allow me to use those page filters elsewhere.