Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreShape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.
Hello!
I am working on creating a dynamic title for a card that summarizes the total number of hires in a certain time period, based on where the user is drilled into a related bar graph. I found the following DAX that gets me close, but I'm not wanting to concantenate the results. For example, if they are drilled into 2022 > Quarter 1 > April, I want the header to read "April". Is this possible? Here's what I'm working with:
Selected Value =
SELECTEDVALUE('Date Table'[Date].[Year])&" "&
SELECTEDVALUE('Date Table'[Date].[Quarter])&" "&
SELECTEDVALUE('Date Table'[Date].[Month])&" "&
SELECTEDVALUE('Date Table'[Date].[Day])
Thank you! Jodi
Solved! Go to Solution.
@JirkaZ Thank you for the suggestion! I couldn't quite get that to work, but here is what I found in case others come across a similar issue. Please forgive my formatting, I'm new to DAX. 🙂
@JirkaZ Thank you for the suggestion! I couldn't quite get that to work, but here is what I found in case others come across a similar issue. Please forgive my formatting, I'm new to DAX. 🙂
I think you'll have to go backwards and check Day, Month, Quarter and Year with HASONEVALUE.
I'd use SWITCH(TRUE(), ... ) for that.
The first value with one value selected should then be used as title.
I hope my logic is correct on this 🙂
User | Count |
---|---|
25 | |
21 | |
20 | |
13 | |
13 |
User | Count |
---|---|
40 | |
28 | |
27 | |
23 | |
21 |