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,
I am new to this forum but I couldn't find any similar thread with the problem I am facing.
So I have a card which I want to have a dinamic title. I already went to conditional formating function for the title but I am not very experinced with the query functions.
I have a slicer and I was able to create a title with the name of the chosen category on that slicer:
Solved! Go to Solution.
@Putoc93 Yes, you can achive this with the SWITCH function. Here is my solution. Hope this works for your requirement.
1. Create a measure in the similar fashion with your required text.
Text Based on Category = SWITCH(
TRUE(),
MIN('DataTable'[Category]) = "Category 1", "Text One",
MIN('DataTable'[Category]) = "Category 2", "Text Two",
MIN('DataTable'[Category]) = "Category 3", "Text Three",
MIN('DataTable'[Category]) = "Category 4", "Text Four"
)
2. Once the measure is created put it in the card visual and here is the result.
** If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution, so that it comes in top of the search and help others. Thank you ! Good Luck 👍 |
@Putoc93 Yes, you can achive this with the SWITCH function. Here is my solution. Hope this works for your requirement.
1. Create a measure in the similar fashion with your required text.
Text Based on Category = SWITCH(
TRUE(),
MIN('DataTable'[Category]) = "Category 1", "Text One",
MIN('DataTable'[Category]) = "Category 2", "Text Two",
MIN('DataTable'[Category]) = "Category 3", "Text Three",
MIN('DataTable'[Category]) = "Category 4", "Text Four"
)
2. Once the measure is created put it in the card visual and here is the result.
** If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution, so that it comes in top of the search and help others. Thank you ! Good Luck 👍 |
Thank you very much ghoshabhijeet!
This was exactly what I was looking 😀
Regards.
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 |
---|---|
98 | |
96 | |
84 | |
70 | |
67 |
User | Count |
---|---|
116 | |
109 | |
94 | |
79 | |
72 |