Forum Discussion
Add filter value into the report header
- 10 years ago
mroomi, Example below
Measure Defined a below:
Filtered Year = IF ( ISFILTERED(vw_Name[PSPStatus]), CONCATENATE("Document Count for the Fiscal Year ", (IF(HASONEVALUE(vw_Name[PSPStatus]), FIRSTNONBLANK(vw_Name[PSPStatus],"") ,""))), "Report Page is not Filtered by FY")
Table Data:
Table DataNo Values in Filter
Noticed that Long Text Visual is unable to take Measure as an input ...
Hope this helps!
mroomi Create a DAX text measure using HASONEVALUE & FIRSTNONBLANK & optionally [ISFILTERED or HASONEFILTER] and use this.
For example, please see Will Thompson's Create Impactful Reports With Power BI Desktop MSDataSummit Video around 28:30 minute mark..
Thanks,
I tried to create a simple one but I get the following error
Title = if (HASONEVALUE(vw_Name[PSPStatus]),vw_Name[PSPStatus])
Error = "A single value for column 'PSPStatus' in table 'vw_Name' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result."
Actually what I'm trying to do is to when ever the user changes the value of the filter it reflects in the report headrer.