Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello Guys,
I created a report using a slicer where the user can select the desired planning category. My visual title or report title (or both) should show the selected value in the slicer?
Is this possible in Power BI an dif so how?
May thanks!
Paul
Solved! Go to Solution.
Hi @theunissenp
Please refer the link
https://blog.crossjoin.co.uk/2016/04/25/dynamic-chart-titles-in-power-bi/
Cheers
CheenuSing
Hi @theunissenp
Please refer the link
https://blog.crossjoin.co.uk/2016/04/25/dynamic-chart-titles-in-power-bi/
Cheers
CheenuSing
Hello @CheenuSing
My result should be as follows. If one category is selected then it should show in the title. If more selected it should give the result 'costs per region multiple catgories'
I used the following coding and i'm getting the following error: 'invalid token line 16 offset 31'
Have you got any idea what went wrong?
Title2 =
VAR SelectedCategories =
VALUES ( 'Ocin_Logistic'[Category.Category level 01] )
VAR NumberOfSelectedCategories =
COUNTROWS ( SelectedCategories )
RETURN
"Cost per Region "
& IF (
NumberOfSelectedCategories > 1,
"Multiple Categories",
"For "
& IF (
NumberOfSelectedDays = 1,
"",
CONCATENATEX (
VALUES(‘OCIN_LOGISTIC'[CATEGORY.CATEGORY Level 01]), ’OCIN_LOGISTIC'[CATEGORY.CATEGORY Level 01],
“, “)
)
regards
Paul
Hi @theunissenp
Just corrected the syntax , try this out
Title2 =
VAR SelectedCategories =
VALUES ( 'Ocin_Logistic'[Category.Category level 01] )
VAR NumberOfSelectedCategories =
COUNTROWS ( SelectedCategories )
RETURN
"Cost per Region "
& IF (
NumberOfSelectedCategories > 1,
"Multiple Categories For "
& IF (
NumberOfSelectedDays = 1,
"",
CONCATENATEX (
VALUES ( 'OCIN_LOGISTIC'[CATEGORY.CATEGORY Level 01] ),
'OCIN_LOGISTIC'[CATEGORY.CATEGORY Level 01],
", "
)
)
)
Cheers
CheenuSing
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
101 | |
86 | |
64 |