Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I want to create a Dynamic title based on the month that am selecting. Condetions are below
1 If am selecting All Months then it should show "MTD".
2 If am selecting multiple month's then it should show "Multiple Month's".
3 If am selecting only one month then it should show "MTD".
Solved! Go to Solution.
@unnijoy I think I forgot to close ) before =1
SWITCH(TRUE(),
NOT(ISFILTERED('Month DB'[Month])),"MTD",
ISFILTERED('Month DB'[Month])&&CALCULATE(DISTINCTCOUNT('Month DB'[Month]),ALLSELECTED('Month DB'[Month]))=1,"MTD","Multiple Month's")
@unnijoy , Create measure like
Switch ( True() ,
not(isfiltered(Date[Month]) ) , "MTD",
isfiltered(Date[Month]) && countx(allselected(Date), Date[month]) =1, "MTD",
"Multiple Months"
)
Hi @amitchandak ,
If all months are seleced the title is changing to MTD. But if i select any one month it is changin to "Multiple Months".
How to fix it. Please help.
@unnijoy , I think for all month you needed MTD, First condition is for that. I changed the second one
Switch ( True() ,
not(isfiltered(Date[Month]) ) , "MTD", // Change this when nothing is selected or all selected
isfiltered(Date[Month]) && calculate(distinctCOUNT( Date[month]),allselected(Date)) =1, "MTD",
"Multiple Months"
)
Hi @amitchandak ,
the is how i use the code.
I am gettin the below error.
"The True/False expressions does not specify a column . Each True/False expressions used as a table filter expression must refer to excatly one column".
@unnijoy I think I forgot to close ) before =1
SWITCH(TRUE(),
NOT(ISFILTERED('Month DB'[Month])),"MTD",
ISFILTERED('Month DB'[Month])&&CALCULATE(DISTINCTCOUNT('Month DB'[Month]),ALLSELECTED('Month DB'[Month]))=1,"MTD","Multiple Month's")
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 46 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 67 | |
| 32 | |
| 27 | |
| 26 |