Forum Discussion
Concatenated tooltip - on a bubble plot (or anywhere)
- 1 year ago
Try this new code:
Emails included = VAR _Emai1sInPeriodPerContact = SUMMARIZE ( 'Emai1s and Contacts', 'Emails and Contacts '[contactid], 'Emails and Contacts '[blc_subject], "How Many Emails", SUM ( 'Emai1s and Contacts'[Was Delivered] ) ) VAR RETURN CONCATENEX ( SUMMARIZE( FILTER ( _Emai1sInPeriodPerContact, [How Many Emails] = 'Number of Emails'[Number of Emails Value] ), 'Emails and Contacts '[blc_subject]) , 'Emails and Contacts '[blc_subject], ", " )
Try this new code:
Emails included =
VAR _Emai1sInPeriodPerContact =
SUMMARIZE (
'Emai1s and Contacts',
'Emails and Contacts '[contactid],
'Emails and Contacts '[blc_subject],
"How Many Emails", SUM ( 'Emai1s and Contacts'[Was Delivered] )
)
VAR
RETURN
CONCATENEX (
SUMMARIZE(
FILTER (
_Emai1sInPeriodPerContact,
[How Many Emails] = 'Number of Emails'[Number of Emails Value]
), 'Emails and Contacts '[blc_subject])
,
'Emails and Contacts '[blc_subject],
", "
)Hi again MFelix , I really appreciate your time on this one! I'm afraid that still doesn't quite work. I've been trying different versions, but still haven't cracked it. I think these are the challenges (at least, as far as I can see):
* When "How Many Emails" is created in that first SUMMARIZE table, it will only ever be 0 or 1, as the granularity is per contactid, and they either received the email or they didn't. That means that, in the second SUMMARIZE table, when we compare "How Many Emails" to [Number of Emails Value], we won't be matching correctly. To get round this, I tweaked that first bit to:
- MFelix1 year agoSuper User
Hi s--turn ,
If you allow me first of all you have a huge problem on your data model that is the bidirectional filters on all your tables, do not apply this to your calculations since this will make your results not be correct because of the filtering of dimensions by facts.
Can you please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.
If the information is sensitive please share it trough private message.- s--turn1 year agoHelper II
Thanks - seems I have some bad habits to unlearn! It seems like this is quite a lot to untangle, so I'm going to pause work on this report for the time being, and return to it later. It will take time to mock up a .pbix file, so again that may have to wait. I appreciate your guidance so far.