Dear colleagues ,
I am going to create a dynamic title for my chart in power BI ,and I want to concatenate two slicers in this title
1- department slicer
2- month slicer
I want to display title as "Expenses by "Month" & "Department, when slicers are selected
I have the following measures:
and
and title measure which combines both:
I have a small problem that when nothing is selected the title becomes so long ,whereas I want to display "no selection is made" or "all months for all departments" instead.
I think it has to do with "if isfiltered" function.
Best regards,
I am going to create a dynamic title for my chart in power BI ,and I want to concatenate two slicers in this title
1- department slicer
2- month slicer
I want to display title as "Expenses by "Month" & "Department, when slicers are selected
I have the following measures:
Power Query:
Selected Month = VAR GetValues=CONCATENATEX(
VALUES('Date'[Month]); 'Date'[Month]; " & ")
RETURN
"Expenses by " & GetValues & " "
and
Power Query:
Selected Dept. = VAR GetValues=CONCATENATEX(
VALUES('mapping'[Département]); 'mapping'[Département]; " & ")
RETURN
" " & GetValues & " "
and title measure which combines both:
Power Query:
Title = COMBINEVALUES(" " ; [Selected Month] ;"for"; [Selected Dept.])
I have a small problem that when nothing is selected the title becomes so long ,whereas I want to display "no selection is made" or "all months for all departments" instead.
I think it has to do with "if isfiltered" function.
Best regards,