Forum Discussion
CALCULATE and FILTER With Text column
- Anonymous7 years ago
Hi,
Thanks for coming back to me - I think I must have not explained this very well as I managed to solve it with this:
minutesPercent = DIVIDE( 'bio agentStatus'[durationTotal], CALCULATE(SUM('bio agentStatus'[statusDuration]),ALL('bio agentStatus'[bio status.description (groups)])) ,0)
Hi Anonymous,
Nope, you can't use math function to calculate with text value except count.
In my opinion, I'd like to suggest you create measure with calculate and text function to get current desktop, then drag it to tooltip field to display description.
Sample:
Measure =
CALCULATE (
CONCATENATEX (
VALUES ( 'bio agentStatus'[statusDuration] ),
[statusDuration],
","
),
VALUES ( 'bio agentStatus'[statusID] )
)
Reference link:
Text Functions (DAX) - With these functions, you can return part of a string, search for text within a string, or concatenate string values. Additional functions are for controlling the formats for dates, times, and numbers.
Regards,
Xiaoxin Sheng
Hi,
Thanks for coming back to me - I think I must have not explained this very well as I managed to solve it with this:
minutesPercent = DIVIDE(
'bio agentStatus'[durationTotal],
CALCULATE(SUM('bio agentStatus'[statusDuration]),ALL('bio agentStatus'[bio status.description (groups)]))
,0)